pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix MERGE command tag for actions blocked by BEFORE ROW triggers 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix MERGE command tag for actions blocked by BEFORE ROW triggers @ 2023-03-13 11:14 Dean Rasheed <dean.a.rasheed@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Dean Rasheed @ 2023-03-13 11:14 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix MERGE command tag for actions blocked by BEFORE ROW triggers. This ensures that the row count in the command tag for a MERGE is correctly computed in the case where UPDATEs or DELETEs are skipped due to a BEFORE ROW trigger returning NULL (the INSERT case was already handled correctly by ExecMergeNotMatched() calling ExecInsert()). Back-patch to v15, where MERGE was introduced. Discussion: https://postgr.es/m/CAEZATCU8XEmR0JWKDtyb7iZ%3DqCffxS9uyJt0iOZ4TV4RT%2Bow1w%40mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/7b14e20b12cc8358cad9bdd05dd6b7de7f73c431 Modified Files -------------- src/backend/executor/nodeModifyTable.c | 10 ++++++---- src/test/regress/expected/merge.out | 15 +++++++++++++++ src/test/regress/sql/merge.sql | 13 +++++++++++++ 3 files changed, 34 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix MERGE command tag for actions blocked by BEFORE ROW triggers @ 2023-03-13 11:14 Dean Rasheed <dean.a.rasheed@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Dean Rasheed @ 2023-03-13 11:14 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix MERGE command tag for actions blocked by BEFORE ROW triggers. This ensures that the row count in the command tag for a MERGE is correctly computed in the case where UPDATEs or DELETEs are skipped due to a BEFORE ROW trigger returning NULL (the INSERT case was already handled correctly by ExecMergeNotMatched() calling ExecInsert()). Back-patch to v15, where MERGE was introduced. Discussion: https://postgr.es/m/CAEZATCU8XEmR0JWKDtyb7iZ%3DqCffxS9uyJt0iOZ4TV4RT%2Bow1w%40mail.gmail.com Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/da6257eee35db5d281a115838abaf285b46b52f3 Modified Files -------------- src/backend/executor/nodeModifyTable.c | 10 ++++++---- src/test/regress/expected/merge.out | 15 +++++++++++++++ src/test/regress/sql/merge.sql | 13 +++++++++++++ 3 files changed, 34 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2023-03-13 11:14 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2023-03-13 11:14 pgsql: Fix MERGE command tag for actions blocked by BEFORE ROW triggers Dean Rasheed <dean.a.rasheed@gmail.com> 2023-03-13 11:14 pgsql: Fix MERGE command tag for actions blocked by BEFORE ROW triggers 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