pgsql: Fix handling of updated tuples in the MERGE statement

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: Fix handling of updated tuples in the MERGE statement
Дата
Msg-id E1vyD1Q-002Y6g-1x@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix handling of updated tuples in the MERGE statement

This branch missed the IsolationUsesXactSnapshot() check.  That led to EPQ on
repeatable read and serializable isolation levels.  This commit fixes the
issue and provides a simple isolation check for that.  Backpatch through v15
where MERGE statement was introduced.

Reported-by: Tender Wang <tndrwang@gmail.com>
Discussion: https://postgr.es/m/CAPpHfdvzZSaNYdj5ac-tYRi6MuuZnYHiUkZ3D-AoY-ny8v%2BS%2Bw%40mail.gmail.com
Author: Tender Wang <tndrwang@gmail.com>
Reviewed-by: Dean Rasheed <dean.a.rasheed@gmail.com>
Backpatch-through: 15

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2dcac93c00655cc62e8105dc12b6cd302d2c0625

Modified Files
--------------
src/backend/executor/nodeModifyTable.c       |  5 +++++
src/test/isolation/expected/merge-update.out | 33 ++++++++++++++++++++++++++++
src/test/isolation/specs/merge-update.spec   |  2 ++
3 files changed, 40 insertions(+)


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