pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix replica identity check for a partitioned table. 4+ messages / 1 participants [nested] [flat]
* pgsql: Fix replica identity check for a partitioned table. @ 2022-08-16 10:06 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Amit Kapila @ 2022-08-16 10:06 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/0d5bd3a6cc3e4cd2fb44e2714e52a684cc7bbc25 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(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix replica identity check for a partitioned table. @ 2022-08-16 10:06 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Amit Kapila @ 2022-08-16 10:06 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix replica identity check for a partitioned table. @ 2022-08-16 10:06 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Amit Kapila @ 2022-08-16 10:06 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/02f8d68af256c34cfac774ae46b2d4a465d35276 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(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix replica identity check for a partitioned table. @ 2022-08-16 10:06 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Amit Kapila @ 2022-08-16 10:06 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1df86aac517dc9251b491e71957c33275a1cc35a 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(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2022-08-16 10:06 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2022-08-16 10:06 pgsql: Fix replica identity check for a partitioned table. Amit Kapila <akapila@postgresql.org> 2022-08-16 10:06 pgsql: Fix replica identity check for a partitioned table. Amit Kapila <akapila@postgresql.org> 2022-08-16 10:06 pgsql: Fix replica identity check for a partitioned table. Amit Kapila <akapila@postgresql.org> 2022-08-16 10:06 pgsql: Fix replica identity check for a partitioned table. Amit Kapila <akapila@postgresql.org>
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