pgsql: Change currtid functions to use an MVCC snapshot, not SnapshotNo - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Change currtid functions to use an MVCC snapshot, not SnapshotNo
Date
Msg-id E1V2SId-0008BZ-C0@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Change currtid functions to use an MVCC snapshot, not SnapshotNow.

This has a slight performance cost, but the only known consumers
of these functions, known at the SQL level as currtid and currtid2,
is pgsql-odbc; whose usage, we hope, is not sufficiently intensive
to make this a problem.

Per discussion.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ed93feb80891b131e9676e962256cc2b18aa5e78

Modified Files
--------------
src/backend/utils/adt/tid.c |   12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: pgstattuple: Doc update for previous commit.
Next
From: Tom Lane
Date:
Subject: pgsql: Prevent leakage of SPI tuple tables during subtransaction abort.