pg_control_checkpoint()
是一个系统函数,它公开与当前检查点状态相关的pg_control
数据的子集。
pg_control_checkpoint()
在PostgreSQL 9.6中添加。
示例
postgres=# SELECT * FROM pg_control_checkpoint(); -[ RECORD 1 ]--------+------------------------- checkpoint_lsn | 0/3475BE8 redo_lsn | 0/2BF1DE8 redo_wal_file | 000000010000000000000002 timeline_id | 1 prev_timeline_id | 1 full_page_writes | t next_xid | 0:515 next_oid | 24576 next_multixact_id | 1 next_multi_offset | 0 oldest_xid | 485 oldest_xid_dbid | 1 oldest_active_xid | 515 oldest_multi_xid | 1 oldest_multi_dbid | 1 oldest_commit_ts_xid | 0 newest_commit_ts_xid | 0 checkpoint_time | 2019-07-17 15:22:20+01
参考文献
- PostgreSQL 文档: pg_control_checkpoint()