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: Allow the logical_replication_mode to be used on the subscriber.
Date: Thu, 02 Feb 2023 02:55:18 +0000
Message-ID: <E1pNPkr-0019iY-CZ@gemulon.postgresql.org> (raw)

Allow the logical_replication_mode to be used on the subscriber.

Extend the existing developer option 'logical_replication_mode' to help
test the parallel apply of large transactions on the subscriber.

When set to 'buffered', the leader sends changes to parallel apply workers
via a shared memory queue. When set to 'immediate', the leader serializes
all changes to files and notifies the parallel apply workers to read and
apply them at the end of the transaction.

This helps in adding tests to cover the serialization code path in
parallel streaming mode.

Author: Hou Zhijie
Reviewed-by: Peter Smith, Kuroda Hayato, Sawada Masahiko, Amit Kapila
Discussion: https://postgr.es/m/CAA4eK1+wyN6zpaHUkCLorEWNx75MG0xhMwcFhvjqm2KURZEAGw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9f2213a7c575bae43a2d41abc8b60770066ca81c

Modified Files
--------------
doc/src/sgml/config.sgml                           | 35 +++++++++----
.../replication/logical/applyparallelworker.c      | 16 ++++--
src/backend/utils/misc/guc_tables.c                |  6 ++-
src/test/subscription/t/015_stream.pl              | 28 ++++++++++
.../subscription/t/018_stream_subxact_abort.pl     | 61 +++++++++++++++++++++-
src/test/subscription/t/023_twophase_stream.pl     | 46 +++++++++++++++-
6 files changed, 172 insertions(+), 20 deletions(-)



Message-ID: <E1pNPkr-0019iY-CZ@gemulon.postgresql.org>
Permalink:  ../E1pNPkr-0019iY-CZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pNPkr-0019iY-CZ@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: Allow the logical_replication_mode to be used on the subscriber.
  In-Reply-To: <E1pNPkr-0019iY-CZ@gemulon.postgresql.org>
  References: <E1pNPkr-0019iY-CZ@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