首页 > 其他 > 详细

WAL

时间:2016-05-30 14:32:20      阅读:274      评论:0      收藏:0      [点我收藏+]

WAL record format

typedef struct XLogRecord
{
pg_crc32         xl_crc; /* CRC for this record */
XLogRecPtr      xl_prev; /* ptr to previous record in log */
TransactionId   xl_xid; /* xact id */
uint32              xl_tot_len; /* total len of entire record */
uint32              xl_len; /* total len of rmgr data */
uint8                xl_info; /* flag bits, see below */
RmgrId             xl_rmid; /* resource manager for this record */
/* Depending on MAXALIGN, there are either 2 or 6 wasted bytes here */
/* ACTUAL LOG DATA FOLLOWS AT END OF STRUCT */
} XLogRecord;

Tools

• Developer tools
– WAL_DEBUG compile option
– Xlogdump http://xlogviewer.projects.postgresql.org/

PITR tools
– Pglesslog
http://pgfoundry.org/projects/pglesslog/

– Clearxlogtail
http://pgfoundry.org/projects/clearxlogtail

 wal_debug=on

WAL

原文:http://www.cnblogs.com/songyuejie/p/5542191.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!