pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix MERGE command tag for cross-partition updates. 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix MERGE command tag for cross-partition updates. @ 2023-02-22 09:43 Dean Rasheed <dean.a.rasheed@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Dean Rasheed @ 2023-02-22 09:43 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix MERGE command tag for cross-partition updates. @ 2023-02-22 09:43 Dean Rasheed <dean.a.rasheed@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Dean Rasheed @ 2023-02-22 09:43 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/018af1cc1c8075346e6a5fe3bb77b7e31399be70 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2023-02-22 09:43 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 09:43 pgsql: Fix MERGE command tag for cross-partition updates. Dean Rasheed <dean.a.rasheed@gmail.com> 2023-02-22 09:43 pgsql: Fix MERGE command tag for cross-partition updates. 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