txid_current_snapshot()

返回当前快照的函数
此条目涉及一个 PostgreSQL 功能,该功能已弃用,并可能在未来的版本中不再支持。

txid_current_snapshot() 是一个返回当前快照的系统函数。

txid_current_snapshot()PostgreSQL 8.3 中添加。

用法

txid_current_snapshot () → txid_snapshot

PostgreSQL 13 中引入 pg_snapshotxid8 数据类型后,此函数已被弃用,并被 pg_current_snapshot() 取代。

变更历史

示例

示例如

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

分类

已弃用, 系统函数, 事务

另请参阅

pg_current_snapshot(), txid_visible_in_snapshot()

反馈

请在此处提交有关 "txid_current_snapshot()" 的任何评论、建议或更正。