pgsql: Avoid special XID snapshotConflictHorizon values.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid special XID snapshotConflictHorizon values.
Date: 2023-01-02 18:17:07
Message-ID: E1pCPMw-001i5A-Oa@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid special XID snapshotConflictHorizon values.

Don't allow VACUUM to WAL-log the value FrozenTransactionId as the
snapshotConflictHorizon of freezing or visibility map related WAL
records.

The only special XID value that's an allowable snapshotConflictHorizon
is InvalidTransactionId, which is interpreted as "record definitely
doesn't require a recovery conflict".

Author: Peter Geoghegan <pg(at)bowt(dot)ie>
Discussion: https://postgr.es/m/CAH2-WznuNGSzF8v6OsgjaC5aYsb3cZ6HW6MLm30X0d65cmSH6A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6daeeb1f9196e5d59aa7d5c9ef7ed67b3f3ac4b5

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 8 +++++---
src/backend/storage/ipc/standby.c | 1 +
2 files changed, 6 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2023-01-02 18:18:43 pgsql: Adjust VACUUM hastup LP_REDIRECT comments.
Previous Message Tom Lane 2023-01-02 18:02:41 pgsql: Add bt_multi_page_stats() function to contrib/pageinspect.