pgsql: Fix MERGE command tag for cross-partition updates.

Поиск
Список
Период
Сортировка
От Dean Rasheed
Тема pgsql: Fix MERGE command tag for cross-partition updates.
Дата
Msg-id E1pUleT-0006ty-My@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix MERGE command tag for cross-partition updates.

This ensures that the row count in the command tag for a MERGE is
correctly computed. Previously, if MERGE updated a partitioned table,
the row count would be incorrect if any row was moved to a different
partition, since such updates were counted twice.

Back-patch to v15, where MERGE was introduced.

Discussion: https://postgr.es/m/CAEZATCWRMG7XX2QEsVL1LswmNo2d_YG8tKTLkpD3=Lp644S7rg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/80a48e0f21c51ed65fe647b18019ab6f8eab15cd

Modified Files
--------------
src/backend/executor/nodeModifyTable.c |  2 +-
src/test/regress/expected/merge.out    | 16 ++++++++++++++++
src/test/regress/sql/merge.sql         | 11 +++++++++++
3 files changed, 28 insertions(+), 1 deletion(-)


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Implement ANY_VALUE aggregate
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: pgsql: doc: Add default value of createrole_self_grant