pgsql: Fix assertions with RI triggers in heap_update and heap_delete.

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Fix assertions with RI triggers in heap_update and heap_delete.
Дата
Msg-id E1r7vTv-007eBw-S3@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
REL_13_STABLE

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

Modified Files
--------------
src/backend/access/heap/heapam.c | 41 +++++++++++++++++++++++-----------------
src/include/access/tableam.h     |  4 ++--
2 files changed, 26 insertions(+), 19 deletions(-)


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

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: pgsql: psql: Add tab completion for view options.
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Remove more statements from stats.sql