摘要:
接前问,初步学习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 ... 阅读全文
摘要:
接前文 初步学习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... 阅读全文
摘要:
接前文初步学习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. ... 阅读全文
摘要:
接前文,初步学习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... 阅读全文
摘要:
接前文 初步学习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... 阅读全文
摘要:
接前文初步学习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 阅读全文