pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix Assert failure for MERGE into a partitioned table with RLS. 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix Assert failure for MERGE into a partitioned table with RLS. @ 2023-02-22 10:56 Dean Rasheed <dean.a.rasheed@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Dean Rasheed @ 2023-02-22 10:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix Assert failure for MERGE into a partitioned table with RLS. In ExecInitPartitionInfo(), the Assert when building the WITH CHECK OPTION list for the new partition assumed that the command would be an INSERT or UPDATE, but it can also be a MERGE. This can be triggered by a MERGE into a partitioned table with RLS checks to enforce. Fix, and back-patch to v15, where MERGE was introduced. Discussion: https://postgr.es/m/CAEZATCWWFtQmW67F3XTyMU5Am10Oxa_b8oe0x%2BNu5Mo%2BCdRErg%40mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/0d3b49d4af7509032c847bfc956aac98d30644bf Modified Files -------------- src/backend/executor/execPartition.c | 10 +++++++--- src/test/regress/expected/merge.out | 12 ++++++++++++ src/test/regress/sql/merge.sql | 12 ++++++++++++ 3 files changed, 31 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix Assert failure for MERGE into a partitioned table with RLS. @ 2023-02-22 10:56 Dean Rasheed <dean.a.rasheed@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Dean Rasheed @ 2023-02-22 10:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix Assert failure for MERGE into a partitioned table with RLS. In ExecInitPartitionInfo(), the Assert when building the WITH CHECK OPTION list for the new partition assumed that the command would be an INSERT or UPDATE, but it can also be a MERGE. This can be triggered by a MERGE into a partitioned table with RLS checks to enforce. Fix, and back-patch to v15, where MERGE was introduced. Discussion: https://postgr.es/m/CAEZATCWWFtQmW67F3XTyMU5Am10Oxa_b8oe0x%2BNu5Mo%2BCdRErg%40mail.gmail.com Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d8c3b65db58db0a074dc9f7e27846e22e9dc579f Modified Files -------------- src/backend/executor/execPartition.c | 10 +++++++--- src/test/regress/expected/merge.out | 12 ++++++++++++ src/test/regress/sql/merge.sql | 12 ++++++++++++ 3 files changed, 31 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2023-02-22 10:56 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2023-02-22 10:56 pgsql: Fix Assert failure for MERGE into a partitioned table with RLS. Dean Rasheed <dean.a.rasheed@gmail.com> 2023-02-22 10:56 pgsql: Fix Assert failure for MERGE into a partitioned table with RLS. Dean Rasheed <dean.a.rasheed@gmail.com>
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