pgsql: Fix handling of updated tuples in the MERGE statement

Поиск
Список
Период
Сортировка
Искать

pgsql: Fix handling of updated tuples in the MERGE statement

От:
Alexander Korotkov <akorotkov@postgresql.org>
Дата:
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 
Discussion: https://postgr.es/m/CAPpHfdvzZSaNYdj5ac-tYRi6MuuZnYHiUkZ3D-AoY-ny8v%2BS%2Bw%40mail.gmail.com
Author: Tender Wang 
Reviewed-by: Dean Rasheed 
Backpatch-through: 15

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f6e63d4b8b2ec5ff011c87f79f3efc8abe921263

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

FAQ