postgresql/contrib
Amit Kapila a271a1b50e Allow decoding at prepare time in ReorderBuffer.
This patch allows PREPARE-time decoding of two-phase transactions (if the
output plugin supports this capability), in which case the transactions
are replayed at PREPARE and then committed later when COMMIT PREPARED
arrives.

Now that we decode the changes before the commit, the concurrent aborts
may cause failures when the output plugin consults catalogs (both system
and user-defined).

We detect such failures with a special sqlerrcode
ERRCODE_TRANSACTION_ROLLBACK introduced by commit 7259736a6e and stop
decoding the remaining changes. Then we rollback the changes when rollback
prepared is encountered.

Author: Ajin Cherian and Amit Kapila based on previous work by Nikhil Sontakke and Stas Kelvich
Reviewed-by: Amit Kapila, Peter Smith, Sawada Masahiko, Arseny Sher, and Dilip Kumar
Tested-by: Takamichi Osumi
Discussion:
https://postgr.es/m/02DA5F5E-CECE-4D9C-8B4B-418077E2C010@postgrespro.ru
https://postgr.es/m/CAMGcDxeqEpWj3fTXwqhSwBdXd2RS9jzwWscO-XbeCfso6ts3+Q@mail.gmail.com
2021-01-04 08:34:50 +05:30
..
adminpack Update copyright for 2021 2021-01-02 13:06:25 -05:00
amcheck Update copyright for 2021 2021-01-02 13:06:25 -05:00
auth_delay Update copyright for 2021 2021-01-02 13:06:25 -05:00
auto_explain Update copyright for 2021 2021-01-02 13:06:25 -05:00
bloom Update copyright for 2021 2021-01-02 13:06:25 -05:00
bool_plperl
btree_gin
btree_gist
citext
cube
dblink Update copyright for 2021 2021-01-02 13:06:25 -05:00
dict_int Update copyright for 2021 2021-01-02 13:06:25 -05:00
dict_xsyn Update copyright for 2021 2021-01-02 13:06:25 -05:00
earthdistance
file_fdw Update copyright for 2021 2021-01-02 13:06:25 -05:00
fuzzystrmatch Update copyright for 2021 2021-01-02 13:06:25 -05:00
hstore Update copyright for 2021 2021-01-02 13:06:25 -05:00
hstore_plperl
hstore_plpython
intagg
intarray Update copyright for 2021 2021-01-02 13:06:25 -05:00
isn Update copyright for 2021 2021-01-02 13:06:25 -05:00
jsonb_plperl
jsonb_plpython
lo
ltree
ltree_plpython
oid2name
old_snapshot Update copyright for 2021 2021-01-02 13:06:25 -05:00
pageinspect Update copyright for 2021 2021-01-02 13:06:25 -05:00
passwordcheck Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_buffercache
pg_freespacemap
pg_prewarm Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_standby
pg_stat_statements Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_surgery Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_trgm Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_visibility Update copyright for 2021 2021-01-02 13:06:25 -05:00
pgcrypto Update copyright for 2021 2021-01-02 13:06:25 -05:00
pgrowlocks
pgstattuple Update copyright for 2021 2021-01-02 13:06:25 -05:00
postgres_fdw Update copyright for 2021 2021-01-02 13:06:25 -05:00
seg
sepgsql Update copyright for 2021 2021-01-02 13:06:25 -05:00
spi
sslinfo Use be_tls_* API for SSL information in sslinfo 2020-11-03 09:47:36 +01:00
start-scripts
tablefunc Update copyright for 2021 2021-01-02 13:06:25 -05:00
tcn Update copyright for 2021 2021-01-02 13:06:25 -05:00
test_decoding Allow decoding at prepare time in ReorderBuffer. 2021-01-04 08:34:50 +05:30
tsm_system_rows Update copyright for 2021 2021-01-02 13:06:25 -05:00
tsm_system_time Update copyright for 2021 2021-01-02 13:06:25 -05:00
unaccent Update copyright for 2021 2021-01-02 13:06:25 -05:00
uuid-ossp Update copyright for 2021 2021-01-02 13:06:25 -05:00
vacuumlo Update copyright for 2021 2021-01-02 13:06:25 -05:00
xml2
contrib-global.mk
Makefile
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.