Add a xid argument to the filter_prepare callback for output plugins.
authorAmit Kapila <[email protected]>
Tue, 30 Mar 2021 05:04:43 +0000 (10:34 +0530)
committerAmit Kapila <[email protected]>
Tue, 30 Mar 2021 05:04:43 +0000 (10:34 +0530)
commitf64ea6dc5c8ccaec9a3d3d39695ca261febb6883
tree6fd006f6239df0b955d390f27189ffbd68b8df05
parentbc2797ebb14bae663da1ee7845774dd98716c0d0
Add a xid argument to the filter_prepare callback for output plugins.

Along with gid, this provides a different way to identify the transaction.
The users that use xid in some way to prepare the transactions can use it
to filter prepare transactions. The later commands COMMIT PREPARED or
ROLLBACK PREPARED carries both identifiers, providing an output plugin the
choice of what to use.

Author: Markus Wanner
Reviewed-by: Vignesh C, Amit Kapila
Discussion: https://postgr.es/m/ee280000-7355-c4dc-e47b-2436e7be959c@enterprisedb.com
contrib/test_decoding/test_decoding.c
doc/src/sgml/logicaldecoding.sgml
src/backend/replication/logical/decode.c
src/backend/replication/logical/logical.c
src/include/replication/logical.h
src/include/replication/output_plugin.h