pg_snapshot_xip()

一个返回快照中进行中的事务 ID 的函数

pg_snapshot_xip() 是一个系统函数,用于返回快照中包含的进行中的事务 ID 集合。

pg_snapshot_xip()PostgreSQL 13 中被添加。

用法

pg_snapshot_xip ( pg_snapshot ) → setof xid8

pg_snapshot_xip() 取代了 txid_snapshot_xip()

变更历史

示例

pg_snapshot_xip() 的基本用法示例

postgres=# SELECT pg_current_snapshot();
 pg_current_snapshot 
---------------------
 795:799:795,797
(1 row)

postgres=# SELECT * FROM pg_snapshot_xip(pg_current_snapshot());
 pg_snapshot_xip 
-----------------
             795
             797
(2 rows)

分类

系统函数, 事务

另请参阅

pg_snapshot_xmin(), pg_snapshot_xmax(), pg_current_snapshot()

反馈

请在此处提交关于“pg_snapshot_xip()”的任何评论、建议或更正