From 5de94a041ed7a51b571db2030ba87600c7fc6262 Mon Sep 17 00:00:00 2001 From: Amit Kapila Date: Mon, 26 Dec 2022 08:58:16 +0530 Subject: 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 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 9eedab652df..3071c8eace4 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -11597,6 +11597,34 @@ LOG: CleanUpLock: deleting: lock(0xb7acd844) id(24688,24696,0,0,0,1) + + logical_decoding_mode (enum) + + logical_decoding_mode configuration parameter + + + + + Allows streaming or serializing changes immediately in logical decoding. + The allowed values of logical_decoding_mode are + buffered and immediate. When set + to immediate, stream each change if + streaming option (see optional parameters set by + CREATE SUBSCRIPTION) + is enabled, otherwise, serialize each change. When set to + buffered, which is the default, decoding will stream + or serialize changes when logical_decoding_work_mem + is reached. + + + 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. + + + + -- cgit v1.2.3