]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix replica identity check for a partitioned table.
authorAmit Kapila <akapila@postgresql.org>
Tue, 16 Aug 2022 09:44:27 +0000 (15:14 +0530)
committerAmit Kapila <akapila@postgresql.org>
Tue, 16 Aug 2022 09:44:27 +0000 (15:14 +0530)
commit76d257925994556bb49a7ce13dcb4785fbe7f395
treea8c0caf02678f6de196a51dc54bfc8bf9e699d01
parent16c68567b58e328e97a00c7f273ee26cee6bbf01
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
src/backend/executor/execReplication.c
src/test/regress/expected/publication.out
src/test/regress/sql/publication.sql