Add 'logical_decoding_mode' GUC.
authorAmit Kapila <akapila@postgresql.org>
Mon, 26 Dec 2022 03:28:16 +0000 (08:58 +0530)
committerAmit Kapila <akapila@postgresql.org>
Mon, 26 Dec 2022 03:28:16 +0000 (08:58 +0530)
commit5de94a041ed7a51b571db2030ba87600c7fc6262
treeaa280ac6e31eccd9a494ac27c893c9eb08b500ee
parentd3c0cc4447307a2ffbcff8274573b544294e583c
Add 'logical_decoding_mode' GUC.

This enables streaming or serializing changes immediately in logical
decoding. This parameter is intended to be used to test logical decoding
and replication of large transactions for which otherwise we need to
generate the changes till logical_decoding_work_mem is reached.

This helps in reducing the timing of existing tests related to logical
replication of in-progress transactions and will help in writing tests for
for the upcoming feature for parallelly applying large in-progress
transactions.

Author: Shi yu
Reviewed-by: Sawada Masahiko, Shveta Mallik, Amit Kapila, Dilip Kumar, Kuroda Hayato, Kyotaro Horiguchi
Discussion: https://postgr.es/m/OSZPR01MB63104E7449DBE41932DB19F1FD1B9@OSZPR01MB6310.jpnprd01.prod.outlook.com
doc/src/sgml/config.sgml
src/backend/replication/logical/reorderbuffer.c
src/backend/utils/misc/guc_tables.c
src/include/replication/reorderbuffer.h
src/test/subscription/t/016_stream_subxact.pl
src/test/subscription/t/018_stream_subxact_abort.pl
src/test/subscription/t/019_stream_subxact_ddl_abort.pl
src/test/subscription/t/023_twophase_stream.pl
src/tools/pgindent/typedefs.list