此条目涉及一个 PostgreSQL 功能,该功能已弃用,并可能在未来的版本中不再支持。
txid_current_snapshot() 是一个返回当前快照的系统函数。
txid_current_snapshot() 于 PostgreSQL 8.3 中添加。
用法
txid_current_snapshot () → txid_snapshot
在 PostgreSQL 13 中引入 pg_snapshot 和 xid8 数据类型后,此函数已被弃用,并被 pg_current_snapshot() 取代。
变更历史
- PostgreSQL 13
- 标记为已弃用 (commit 4c04be9b)
- PostgreSQL 8.3
- 添加 (commit 1f92630f)
示例
示例如
postgres=# SELECT * FROM txid_current_snapshot(); txid_current_snapshot ----------------------- 5016429:5016429: (1 row)
参考资料
- PostgreSQL 文档: 已弃用的事务 ID 和快照信息函数
反馈
请在此处提交有关 "txid_current_snapshot()" 的任何评论、建议或更正。