pgsql: Reduce spurious Hot Standby conflicts from never-visible records

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема pgsql: Reduce spurious Hot Standby conflicts from never-visible records
Дата
Msg-id E1PQd3n-0005gY-Sw@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Reduce spurious Hot Standby conflicts from never-visible records.
Hot Standby conflicts only with tuples that were visible at
some point. So ignore tuples from aborted transactions or for
tuples updated/deleted during the inserting transaction when
generating the conflict transaction ids.

Following detailed analysis and test case by Noah Misch.
Original report covered btree delete records, correctly observed
by Heikki Linnakangas that this applies to other cases also.
Fix covers all sources of cleanup records via common code.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=b9075a6d2f9b07a00262a670dd60272904c79dce

Modified Files
--------------
src/backend/access/heap/heapam.c    |   33 +++++++++++++++++++++++++--------
src/backend/access/heap/pruneheap.c |    1 -
src/backend/access/nbtree/nbtxlog.c |   19 +++++--------------
3 files changed, 30 insertions(+), 23 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Force default wal_sync_method to be fdatasync on Linux.
Следующее
От: Simon Riggs
Дата:
Сообщение: pgsql: Self review of previous patch. Fix assumption that xmax >= xmin.