摘要: 接前问,初步学习pg_control文件之十一,再来看下面这个XLogRecPtr minRecoveryPoint;看其注释: * minRecoveryPoint is updated to the latest replayed LSN whenever we * flush a data change during archive recovery. That guards against * starting archive recovery, aborting it, and restarting with an earlier * stop ... 阅读全文
posted @ 2013-08-01 17:06 健哥的数据花园 阅读(995) 评论(0) 推荐(0) 编辑
摘要: 接前文 初步学习pg_control文件之十,再看这个XLogRecPtr prevCheckPoint; /* previous check point record ptr */发生了checkpoint的时候,肯定要处理的:/* * Perform a checkpoint --- either during shutdown, or on-the-fly * * flags is a bitwise OR of t... 阅读全文
posted @ 2013-08-01 15:10 健哥的数据花园 阅读(761) 评论(0) 推荐(0) 编辑
摘要: 接前文初步学习pg_control文件之九看下面这个XLogRecPtr checkPoint; /* last check point record ptr */看看这个pointer究竟保留了什么初始化的时候:/* * This func must be called ONCE on system install. It creates pg_control * and the initial XLOG segment. ... 阅读全文
posted @ 2013-08-01 13:53 健哥的数据花园 阅读(800) 评论(0) 推荐(0) 编辑
摘要: 接前文,初步学习pg_control文件之八来看这个:pg_time_t time; /* time stamp of last pg_control update */当初初始化的时候,是这样的:/* * This func must be called ONCE on system install. It creates pg_control * and the initial XLOG segment. */voidBootStrapXLOG(void){ ... CheckPoint checkPoint; ... check... 阅读全文
posted @ 2013-08-01 12:28 健哥的数据花园 阅读(927) 评论(0) 推荐(0) 编辑
摘要: 接前文 初步学习pg_control文件之七继续 看:catalog_version_no代码如下:static voidWriteControlFile(void){ ... /* * Initialize version and compatibility-check fields */ ControlFile->pg_control_version = PG_CONTROL_VERSION; ControlFile->catalog_version_no = CATALOG_VERSION_NO; ...}在catversio... 阅读全文
posted @ 2013-08-01 09:58 健哥的数据花园 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 接前文初步学习pg_control文件之六看 pg_control_version以PostgreSQL9.1.1为了,其HISTORY文件中有如下的内容:Release 9.1.2Release Date: 2011-12-05This release contains a variety of fixes from 9.1.1. For informationabout new features in the 9.1 major release, see the Section calledRelease 9.1.早就写死了:static voidWriteControlFile(void 阅读全文
posted @ 2013-08-01 09:13 健哥的数据花园 阅读(578) 评论(0) 推荐(0) 编辑