Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
1e7629d
Be more careful about the shape of hashable subplan clauses.
tglsfdc Aug 15, 2020
b48cac3
Mark a few logical decoding related variables with PGDLLIMPORT.
Aug 15, 2020
bacda6a
Remove obsolete HAVE_BUGGY_SOLARIS_STRTOD
petere Aug 15, 2020
53095b5
Remove obsolete cygwin.h hack
petere Aug 15, 2020
d4d443b
Remove no-longer-usable hstore--1.0--1.1.sql update script.
tglsfdc Aug 15, 2020
566372b
Prevent concurrent SimpleLruTruncate() for any given SLRU.
nmisch Aug 15, 2020
db659a3
Doc: various improvements for pg_basebackup reference page.
tglsfdc Aug 15, 2020
676a9c3
Correct several behavior descriptions in comments.
nmisch Aug 16, 2020
49967da
Make vacuum a bit more verbose to debug BF failure.
anarazel Aug 16, 2020
f6661d3
Fix use of wrong index in ComputeXidHorizons().
anarazel Aug 16, 2020
b4f1639
doc: Fix description about bgwriter and checkpoint in HA section
michaelpq Aug 17, 2020
d7ec833
Fix printing last progress report line in client programs.
hlinnaka Aug 17, 2020
3941eb6
Make xact.h usable in frontend.
hlinnaka Aug 17, 2020
a28d731
Mark commit and abort WAL records with XLR_SPECIAL_REL_UPDATE.
hlinnaka Aug 17, 2020
22e75a3
Doc: fix description of UNION/CASE/etc type unification.
tglsfdc Aug 17, 2020
6e70443
Disable autovacuum for BRIN test table
alvherre Aug 17, 2020
adbe62d
Add PL/Sample to src/test/modules/
michaelpq Aug 18, 2020
51300b4
Fix use-after-release issue in PL/Sample
michaelpq Aug 18, 2020
623a9ba
snapshot scalability: cache snapshots using a xact completion counter.
anarazel Aug 18, 2020
7344782
Avoid non-constant format string argument to fprintf().
hlinnaka Aug 18, 2020
07f32fc
Fix race condition in snapshot caching when 2PC is used.
anarazel Aug 18, 2020
3e98c0b
Add pg_backend_memory_contexts system view.
MasaoFujii Aug 19, 2020
2072932
Suppress unnecessary RelabelType nodes in yet more cases.
tglsfdc Aug 19, 2020
1fe1f42
Acquire ProcArrayLock exclusively in ProcArrayClearTransaction.
anarazel Aug 20, 2020
0784c33
Revise REINDEX CONCURRENTLY recovery instructions
alvherre Aug 20, 2020
c62a0a4
Revert "Make vacuum a bit more verbose to debug BF failure."
anarazel Aug 20, 2020
8431d33
Fix a few typos in JIT comments and README
david-rowley Aug 20, 2020
d259afa
Fix typos in comments.
MasaoFujii Aug 21, 2020
9d701e6
Rework EXPLAIN for planner's buffer usage.
MasaoFujii Aug 21, 2020
eabba4a
Fix explain regression test failure.
MasaoFujii Aug 21, 2020
5028981
Fix handling of CREATE TABLE LIKE with inheritance.
tglsfdc Aug 21, 2020
bfd78c0
docs: add COMMENT examples for new features, rename rtree
bmomjian Aug 21, 2020
2a9f372
docs: improve description of how to handle multiple databases
bmomjian Aug 22, 2020
c3a2886
doc: Fix format, incorrect structure names and markup inconsistencies
michaelpq Aug 22, 2020
5b02d68
Fix ALTER TABLE's scheduling rules for AT_AddConstraint subcommands.
tglsfdc Aug 22, 2020
4d346de
Avoid pushing quals down into sub-queries that have grouping sets.
tglsfdc Aug 22, 2020
a3c66de
Improve the vacuum error context phase information.
Aug 24, 2020
77c1537
doc: Fix some markups for support functions of index AMs
michaelpq Aug 24, 2020
7f055fb
doc: Fix up title case
petere Aug 25, 2020
ff60394
docs: client certificates are always sent to the server
bmomjian Aug 25, 2020
c34605d
Fixup some misusages of bms_num_members()
david-rowley Aug 25, 2020
29dd6d8
Prevent non-superusers from reading pg_backend_memory_contexts, by de…
MasaoFujii Aug 26, 2020
50db596
Move codes for pg_backend_memory_contexts from mmgr/mcxt.c to adt/mcx…
MasaoFujii Aug 26, 2020
adc8fc6
Add regression test for pg_backend_memory_contexts.
MasaoFujii Aug 26, 2020
808e13b
Extend the BufFile interface.
Aug 26, 2020
7e45363
Add additional information in the vacuum error context.
Aug 26, 2020
fe7fd4e
Add regression tests for REPLICA IDENTITY with dropped indexes
michaelpq Aug 26, 2020
e942af7
Suppress compiler warning in non-cassert builds.
tglsfdc Aug 26, 2020
77c7267
Fix comment in procarray.c
michaelpq Aug 27, 2020
10564ee
Fix code for re-finding scan position in a multicolumn GIN index.
tglsfdc Aug 27, 2020
924123a
passwordcheck: Log cracklib diagnostics
petere Aug 28, 2020
42aaed6
doc: Update cracklib URL
petere Aug 28, 2020
7a1cd52
doc: Rework tables for built-in operator classes of index AMs
michaelpq Aug 28, 2020
9511fb3
Reset indisreplident for an invalid index in DROP INDEX CONCURRENTLY
michaelpq Aug 30, 2020
3d351d9
Redefine pg_class.reltuples to be -1 before the first VACUUM or ANALYZE.
tglsfdc Aug 30, 2020
6ca547c
Mark factorial operator, and postfix operators in general, as depreca…
tglsfdc Aug 30, 2020
3a788db
Fix docs bug stating file_fdw requires absolute paths
mhagander Aug 31, 2020
243a3b9
doc: clarify the useful features of procedures
bmomjian Aug 31, 2020
47c427d
docs: improve 'capitals' inheritance example
bmomjian Aug 31, 2020
06eba0f
doc: improve description of subscripting of arrays
bmomjian Aug 31, 2020
1e0512f
C comment: remove mention of use of t_hoff WAL structure member
bmomjian Aug 31, 2020
46502bb
Implement Adaptive Hashjoin
melanieplageman Jun 25, 2020
c6843ef
Spill batch 0 and move striping to loading (from build)
melanieplageman Jul 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contrib/file_fdw/file_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ estimate_size(PlannerInfo *root, RelOptInfo *baserel,
/*
* Estimate the number of tuples in the file.
*/
if (baserel->pages > 0)
if (baserel->tuples >= 0 && baserel->pages > 0)
{
/*
* We have # of pages and # of tuples from pg_class (that is, from a
Expand Down
2 changes: 1 addition & 1 deletion contrib/hstore/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DATA = hstore--1.4.sql \
hstore--1.5--1.6.sql \
hstore--1.4--1.5.sql \
hstore--1.3--1.4.sql hstore--1.2--1.3.sql \
hstore--1.1--1.2.sql hstore--1.0--1.1.sql
hstore--1.1--1.2.sql
PGFILEDESC = "hstore - key/value pair data type"

HEADERS = hstore.h
Expand Down
7 changes: 0 additions & 7 deletions contrib/hstore/hstore--1.0--1.1.sql

This file was deleted.

8 changes: 6 additions & 2 deletions contrib/passwordcheck/passwordcheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ check_password(const char *username,
int i;
bool pwd_has_letter,
pwd_has_nonletter;
#ifdef USE_CRACKLIB
const char *reason;
#endif

/* enforce minimum length */
if (pwdlen < MIN_PWD_LENGTH)
Expand Down Expand Up @@ -125,10 +128,11 @@ check_password(const char *username,

#ifdef USE_CRACKLIB
/* call cracklib to check password */
if (FascistCheck(password, CRACKLIB_DICTPATH))
if ((reason = FascistCheck(password, CRACKLIB_DICTPATH)))
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("password is easily cracked")));
errmsg("password is easily cracked"),
errdetail_log("cracklib diagnostic: %s", reason)));
#endif
}

Expand Down
1 change: 1 addition & 0 deletions contrib/pg_prewarm/autoprewarm.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "storage/smgr.h"
#include "tcop/tcopprot.h"
#include "utils/acl.h"
#include "utils/datetime.h"
#include "utils/guc.h"
#include "utils/memutils.h"
#include "utils/rel.h"
Expand Down
3 changes: 3 additions & 0 deletions contrib/pgstattuple/pgstatapprox.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ statapprox_heap(Relation rel, output_type *stat)
stat->tuple_count = vac_estimate_reltuples(rel, nblocks, scanned,
stat->tuple_count);

/* It's not clear if we could get -1 here, but be safe. */
stat->tuple_count = Max(stat->tuple_count, 0);

/*
* Calculate percentages if the relation has one or more pages.
*/
Expand Down
1 change: 1 addition & 0 deletions contrib/postgres_fdw/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "postgres_fdw.h"
#include "storage/fd.h"
#include "storage/latch.h"
#include "utils/datetime.h"
#include "utils/hsearch.h"
#include "utils/inval.h"
#include "utils/memutils.h"
Expand Down
7 changes: 3 additions & 4 deletions contrib/postgres_fdw/postgres_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,15 +692,14 @@ postgresGetForeignRelSize(PlannerInfo *root,
else
{
/*
* If the foreign table has never been ANALYZEd, it will have relpages
* and reltuples equal to zero, which most likely has nothing to do
* with reality. We can't do a whole lot about that if we're not
* If the foreign table has never been ANALYZEd, it will have
* reltuples < 0, meaning "unknown". We can't do much if we're not
* allowed to consult the remote server, but we can use a hack similar
* to plancat.c's treatment of empty relations: use a minimum size
* estimate of 10 pages, and divide by the column-datatype-based width
* estimate to get the corresponding number of tuples.
*/
if (baserel->pages == 0 && baserel->tuples == 0)
if (baserel->tuples < 0)
{
baserel->pages = 10;
baserel->tuples =
Expand Down
71 changes: 70 additions & 1 deletion contrib/test_decoding/expected/ddl.out

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions contrib/test_decoding/sql/ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,37 @@ UPDATE table_with_unique_not_null SET id = -id;
UPDATE table_with_unique_not_null SET id = -id;
DELETE FROM table_with_unique_not_null WHERE data = 3;

-- check tables with dropped indexes used in REPLICA IDENTITY
-- table with primary key
CREATE TABLE table_dropped_index_with_pk (a int PRIMARY KEY, b int, c int);
CREATE UNIQUE INDEX table_dropped_index_with_pk_idx
ON table_dropped_index_with_pk(a);
ALTER TABLE table_dropped_index_with_pk REPLICA IDENTITY
USING INDEX table_dropped_index_with_pk_idx;
DROP INDEX table_dropped_index_with_pk_idx;
INSERT INTO table_dropped_index_with_pk VALUES (1,1,1), (2,2,2), (3,3,3);
UPDATE table_dropped_index_with_pk SET a = 4 WHERE a = 1;
UPDATE table_dropped_index_with_pk SET b = 5 WHERE a = 2;
UPDATE table_dropped_index_with_pk SET b = 6, c = 7 WHERE a = 3;
DELETE FROM table_dropped_index_with_pk WHERE b = 1;
DELETE FROM table_dropped_index_with_pk WHERE a = 3;
DROP TABLE table_dropped_index_with_pk;

-- table without primary key
CREATE TABLE table_dropped_index_no_pk (a int NOT NULL, b int, c int);
CREATE UNIQUE INDEX table_dropped_index_no_pk_idx
ON table_dropped_index_no_pk(a);
ALTER TABLE table_dropped_index_no_pk REPLICA IDENTITY
USING INDEX table_dropped_index_no_pk_idx;
DROP INDEX table_dropped_index_no_pk_idx;
INSERT INTO table_dropped_index_no_pk VALUES (1,1,1), (2,2,2), (3,3,3);
UPDATE table_dropped_index_no_pk SET a = 4 WHERE a = 1;
UPDATE table_dropped_index_no_pk SET b = 5 WHERE a = 2;
UPDATE table_dropped_index_no_pk SET b = 6, c = 7 WHERE a = 3;
DELETE FROM table_dropped_index_no_pk WHERE b = 1;
DELETE FROM table_dropped_index_no_pk WHERE a = 3;
DROP TABLE table_dropped_index_no_pk;

-- check toast support
BEGIN;
CREATE SEQUENCE toasttable_rand_seq START 79 INCREMENT 1499; -- portable "random"
Expand Down
5 changes: 3 additions & 2 deletions doc/src/sgml/advanced.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ CREATE TABLE cities (
);

CREATE TABLE capitals (
state char(2)
state char(2) UNIQUE NOT NULL
) INHERITS (cities);
</programlisting>
</para>
Expand All @@ -630,7 +630,8 @@ CREATE TABLE capitals (
<type>text</type>, a native <productname>PostgreSQL</productname>
type for variable length character strings. The
<classname>capitals</classname> table has
an extra column, <structfield>state</structfield>, which shows their states. In
an additional column, <structfield>state</structfield>, which shows its
state abbreviation. In
<productname>PostgreSQL</productname>, a table can inherit from
zero or more other tables.
</para>
Expand Down
Loading