postgresql/contrib
Andres Freund ce603a34a4 Correct logical decoding restore behaviour for subtransactions.
Before initializing iteration over a subtransaction's changes, the last
few changes were not spilled to disk. That's correct if the transaction
didn't spill to disk, but otherwise... This bug can lead to missed or
misorderd subtransaction contents when they were spilled to disk.

Move spilling of the remaining in-memory changes to
ReorderBufferIterTXNInit(), where it can easily be applied to the top
transaction and, if present, subtransactions.

Since this code had too many bugs already, noticeably increase test
coverage.

Fixes: #14319
Reported-By: Huan Ruan
Discussion: <20160909012610.20024.58169@wrigleys.postgresql.org>
Backport: 9,4-, where logical decoding was added
2016-10-03 22:13:10 -07:00
..
adminpack
auth_delay
auto_explain
btree_gin Make contrib regression tests safe for Danish locale. 2016-07-21 16:52:36 -04:00
btree_gist Properly initialize SortSupport for ORDER BY rechecks in nodeIndexscan.c. 2016-06-05 11:53:06 -04:00
chkpass
citext Make contrib regression tests safe for Danish locale. 2016-07-21 16:52:36 -04:00
cube Fix misc typos. 2015-09-05 11:36:18 +03:00
dblink
dict_int
dict_xsyn
earthdistance
file_fdw Allow foreign and custom joins to handle EvalPlanQual rechecks. 2015-12-08 12:54:33 -05:00
fuzzystrmatch Remove new coupling between NAMEDATALEN and MAX_LEVENSHTEIN_STRLEN. 2016-01-22 11:53:06 -05:00
hstore Fix IsValidJsonNumber() to notice trailing non-alphanumeric garbage. 2016-02-03 01:39:08 -05:00
hstore_plperl Use LOAD not actual code execution to pull in plpython library. 2016-01-11 20:06:47 -05:00
hstore_plpython Use LOAD not actual code execution to pull in plpython library. 2016-01-11 20:06:47 -05:00
intagg
intarray Fix -e option in contrib/intarray/bench/bench.pl. 2016-08-17 15:51:10 -04:00
isn contrib/isn now needs a .gitignore file. 2015-08-02 23:57:42 -04:00
lo
ltree ltree: Zero padding bytes when allocating memory for externally visible data. 2016-03-08 14:59:29 -08:00
ltree_plpython Use LOAD not actual code execution to pull in plpython library. 2016-01-11 20:06:47 -05:00
oid2name
pageinspect Remove unused macros. 2016-05-02 10:08:58 +03:00
passwordcheck
pg_buffercache pg_buffercache: Allow huge allocations. 2016-09-15 09:30:36 -04:00
pg_freespacemap
pg_prewarm
pg_standby Make use of xlog_internal.h's macros in WAL-related utilities. 2015-07-02 10:36:18 +09:00
pg_stat_statements Avoid unlikely data-loss scenarios due to rename() without fsync. 2016-03-09 18:53:53 -08:00
pg_trgm Move strategy numbers to include/access/stratnum.h 2015-05-15 17:03:16 -03:00
pgcrypto Fix building with LibreSSL. 2016-09-15 22:38:01 +03:00
pgrowlocks Fix handling of multixacts predating pg_upgrade 2016-06-24 18:29:28 -04:00
pgstattuple Remove unused macros. 2016-05-02 10:08:58 +03:00
postgres_fdw Fix assorted fallout from IS [NOT] NULL patch. 2016-07-28 16:09:15 -04:00
seg Revert "Convert contrib/seg's bool-returning SQL functions to V1 call convention." 2016-04-28 11:48:10 -04:00
sepgsql Fix sepgsql regression tests. 2015-08-30 11:09:19 -07:00
spi Collection of typo fixes. 2015-05-20 16:56:22 +03:00
sslinfo Fix error message wording in previous sslinfo commit 2015-09-08 11:10:20 -03:00
start-scripts
tablefunc Fix a number of places that produced XX000 errors in the regression tests. 2015-08-02 23:49:19 -04:00
tcn
test_decoding Correct logical decoding restore behaviour for subtransactions. 2016-10-03 22:13:10 -07:00
tsearch2 Make contrib regression tests safe for Danish locale. 2016-07-21 16:52:36 -04:00
tsm_system_rows Redesign tablesample method API, and do extensive code review. 2015-07-25 14:39:00 -04:00
tsm_system_time Some platforms now need contrib/tsm_system_time to be linked with libm. 2015-07-25 16:37:22 -04:00
unaccent
uuid-ossp
vacuumlo
xml2 Replace a bunch more uses of strncpy() with safer coding. 2015-01-24 13:05:42 -05:00
contrib-global.mk
Makefile Finish removing pg_audit 2015-05-28 12:48:25 -04:00
README

The PostgreSQL contrib tree
---------------------------

This subtree contains porting tools, analysis utilities, and plug-in
features that are not part of the core PostgreSQL system, mainly
because they address a limited audience or are too experimental to be
part of the main source tree.  This does not preclude their
usefulness.

User documentation for each module appears in the main SGML
documentation.

When building from the source distribution, these modules are not
built automatically, unless you build the "world" target.  You can
also build and install them all by running "make all" and "make
install" in this directory; or to build and install just one selected
module, do the same in that module's subdirectory.

Some directories supply new user-defined functions, operators, or
types.  To make use of one of these modules, after you have installed
the code you need to register the new SQL objects in the database
system by executing a CREATE EXTENSION command.  In a fresh database,
you can simply do

    CREATE EXTENSION module_name;

See the PostgreSQL documentation for more information about this
procedure.