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: Fix replica identity check for a partitioned table.
Date: Tue, 16 Aug 2022 10:06:59 +0000
Message-ID: <E1oNtTO-0011EX-2r@gemulon.postgresql.org> (raw)

Fix replica identity check for a partitioned table.

The current publisher code checks if UPDATE or DELETE can be executed with
the replica identity of the table even if it's a partitioned table. We can
skip checking the replica identity for partitioned tables because the
operations are actually performed on the leaf partitions (not the
partitioned table).

Reported-by: Brad Nicholson
Author: Hou Zhijie
Reviewed-by: Peter Smith, Amit Kapila
Backpatch-through: 13
Discussion: https://postgr.es/m/CAMMnM%3D8i5DohH%3DYKzV0_wYuYSYvuOJoL9F5nzXTc%2ByzsG1f6rg%40mail.gmail.com

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/76d257925994556bb49a7ce13dcb4785fbe7f395

Modified Files
--------------
src/backend/executor/execReplication.c    | 7 +++++++
src/test/regress/expected/publication.out | 2 ++
src/test/regress/sql/publication.sql      | 2 ++
3 files changed, 11 insertions(+)



view thread (4+ messages)

Message-ID: <E1oNtTO-0011EX-2r@gemulon.postgresql.org>
Permalink:  ../E1oNtTO-0011EX-2r@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oNtTO-0011EX-2r@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: Fix replica identity check for a partitioned table.
  In-Reply-To: <E1oNtTO-0011EX-2r@gemulon.postgresql.org>
  References: <E1oNtTO-0011EX-2r@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