txid_current_snapshot()

A function returning the current snapshot
This entry relates to a PostgreSQL feature which is deprecated and may be desupported in future releases.

txid_current_snapshot() is a system function returning the current snapshot.

txid_current_snapshot() was added in PostgreSQL 8.3.

Usage

txid_current_snapshot () → txid_snapshot

This function is deprecated following the introduction of the pg_snapshot and xid8 data types in PostgreSQL 13 and is superseded by pg_current_snapshot().

Change history

Examples

Sample output from :

postgres=# SELECT * FROM txid_current_snapshot();
 txid_current_snapshot 
-----------------------
 5016429:5016429:
(1 row)

Categories

Deprecated, System function, Transactions

See also

pg_current_snapshot(), txid_visible_in_snapshot()