展示 wal 中所有的资源管理名称
postgres@CLW-DB4:/pgdata/10/data/pg_wal> pg_waldump --rmgr=list
XLOG
Transaction
Storage
CLOG
Database
Tablespace
MultiXact
RelMap
Standby
Heap2
Heap
Btree
Hash
Gin
Gist
Sequence
SPGist
BRIN
CommitTs
ReplicationOrigin
Generic
LogicalMessage
postgres@CLW-DB4:/pgdata/10/data/pg_wal>
展示 STARTSEG 到 ENDSEG 的事务日志
[postgres@pg4 pg_wal]$ pg_waldump 000000010000000000000001
000000010000000000000002
...
rmgr: XLOG len (rec/tot): 106/ 106, tx: 553, lsn: 0/0162C8A8, prev 0/0162C870,
desc: CHECKPOINT_ONLINE redo 0/162C870; tli 1; prev tli 1; fpw true; xid 0:554; oid 19719;
multi 1; offset 0; oldest xid 548 in DB 1; oldest multi 1 in DB 1; oldest/newest commit
timestamp xid: 0/0; oldest running xid 553; online
rmgr: Transaction len (rec/tot): 66/ 66, tx: 553, lsn: 0/0162C918, prev 0/0162C8A8,
desc: COMMIT 2018-06-26 09:23:05.669905 CST; inval msgs: catcache 21; sync
rmgr: Heap len (rec/tot): 54/ 306, tx: 554, lsn: 0/0162C960, prev 0/0162C918,
desc: INSERT off 3, blkref #0: rel 1664/0/2396 blk 0 FPW
rmgr: Btree len (rec/tot): 53/ 153, tx: 554, lsn: 0/0162CA98, prev 0/0162C960, desc:
INSERT_LEAF off 3, blkref #0: rel 1664/0/2397 blk 1 FPW
rmgr: Transaction len (rec/tot): 66/ 66, tx: 554, lsn: 0/0162CB38, prev 0/0162CA98,
desc: COMMIT 2018-06-26 09:23:05.670051 CST; inval msgs: snapshot 2396
rmgr: XLOG len (rec/tot): 106/ 106, tx: 0, lsn: 0/0162CB80, prev 0/0162CB38,
desc: CHECKPOINT_SHUTDOWN redo 0/162CB80; tli 1; prev tli 1; fpw true; xid 0:555; oid
13213; multi 1; offset 0; oldest xid 548 in DB 1; oldest multi 1 in DB 1; oldest/newest commit
timestamp xid: 0/0; oldest running xid 0; shutdown
评论