pgsql: Fix replica identity check for a partitioned table.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix replica identity check for a partitioned table.
Date: 2022-08-16 10:06:59
Message-ID: E1oNtTO-0011EX-2r@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2022-08-16 10:47:06 pgsql: doc: Add missing parenthesis to keycombo
Previous Message Tatsuo Ishii 2022-08-16 00:37:16 pgsql: doc: fix wrong tag used in create sequence manual.