From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add a xid argument to the filter_prepare callback for output plu
Date: Tue, 30 Mar 2021 05:22:13 +0000
Message-ID: <E1lR6pR-000638-7p@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/f64ea6dc5c8ccaec9a3d3d39695ca261febb6883
Modified Files
--------------
contrib/test_decoding/test_decoding.c | 4 +++-
doc/src/sgml/logicaldecoding.sgml | 29 ++++++++++++++++++-----------
src/backend/replication/logical/decode.c | 17 +++++++++++------
src/backend/replication/logical/logical.c | 5 +++--
src/include/replication/logical.h | 3 ++-
src/include/replication/output_plugin.h | 1 +
6 files changed, 38 insertions(+), 21 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: akapila@postgresql.org
Subject: Re: pgsql: Add a xid argument to the filter_prepare callback for output plu
In-Reply-To: <E1lR6pR-000638-7p@gemulon.postgresql.org>
References: <E1lR6pR-000638-7p@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox