git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: cd34247) | patch
Fix assertions with RI triggers in heap_update and heap_delete.
2023年11月28日 09:59:09 +0000 (11:59 +0200)
2023年11月28日 10:00:14 +0000 (12:00 +0200)
commit 60f227316c0ebf5f4f8296f11cedc9360e9cb8ae
Fix assertions with RI triggers in heap_update and heap_delete.

If the tuple being updated is not visible to the crosscheck snapshot,
we return TM_Updated but the assertions would not hold in that case.
Move them to before the cross-check.

Fixes bug #17893. Backpatch to all supported versions.

Author: Alexander Lakhin
Backpatch-through: 12
Discussion: https://www.postgresql.org/message-id/17893-35847009eec517b5%40postgresql.org
src/backend/access/heap/heapam.c diff | blob | blame | history
src/include/access/tableam.h diff | blob | blame | history
src/test/isolation/expected/fk-snapshot.out diff | blob | blame | history
src/test/isolation/specs/fk-snapshot.spec diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /