pgsql: Fix MERGE command tag for actions blocked by BEFORE ROW triggers

Поиск
Список
Период
Сортировка
От Dean Rasheed
Тема pgsql: Fix MERGE command tag for actions blocked by BEFORE ROW triggers
Дата
Msg-id E1pbg8V-003Jns-Oc@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: pgsql: Fix concurrent update issues with MERGE.
Следующее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Add a DEFAULT option to COPY FROM