Add a xid argument to the filter_prepare callback for output plugins.
Amit Kapila <akapila@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/test_decoding/test_decoding.c | modified | +3 −1 |
| doc/src/sgml/logicaldecoding.sgml | modified | +18 −11 |
| src/backend/replication/logical/decode.c | modified | +11 −6 |
| src/backend/replication/logical/logical.c | modified | +3 −2 |
| src/include/replication/logical.h | modified | +2 −1 |
| src/include/replication/output_plugin.h | modified | +1 −0 |
Documentation touched
Discussion
- [PATCH] Provide more information to filter_prepare 26 messages · 2021-03-09 → 2021-03-30