pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add 'logical_decoding_mode' GUC.
Date: Mon, 26 Dec 2022 03:36:50 +0000
Message-ID: <E1p9eIE-000RR1-IB@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5de94a041ed7a51b571db2030ba87600c7fc6262

Modified Files
--------------
doc/src/sgml/config.sgml                           | 28 ++++++++++++
src/backend/replication/logical/reorderbuffer.c    | 33 +++++++++-----
src/backend/utils/misc/guc_tables.c                | 17 ++++++++
src/include/replication/reorderbuffer.h            |  8 ++++
src/test/subscription/t/016_stream_subxact.pl      | 18 ++++----
.../subscription/t/018_stream_subxact_abort.pl     | 50 +++++++++++-----------
.../subscription/t/019_stream_subxact_ddl_abort.pl | 18 ++++----
src/test/subscription/t/023_twophase_stream.pl     | 28 ++++++------
src/tools/pgindent/typedefs.list                   |  1 +
9 files changed, 134 insertions(+), 67 deletions(-)



Message-ID: <E1p9eIE-000RR1-IB@gemulon.postgresql.org>
Permalink:  ../E1p9eIE-000RR1-IB@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1p9eIE-000RR1-IB@gemulon.postgresql.org

 · 

reply

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 'logical_decoding_mode' GUC.
  In-Reply-To: <E1p9eIE-000RR1-IB@gemulon.postgresql.org>
  References: <E1p9eIE-000RR1-IB@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