Contents
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
- PostgreSQL 13
- marked as deprecated (commit 4c04be9b)
- PostgreSQL 8.3
- added (commit 1f92630f)
Examples
Sample output from :
postgres=# SELECT * FROM txid_current_snapshot(); txid_current_snapshot ----------------------- 5016429:5016429: (1 row)
References
- PostgreSQL documentation: Deprecated Transaction ID and Snapshot Information Functions