初步学习pg_control文件之七

本文深入探讨了PostgreSQL中pg_control文件的版本控制机制。通过分析PostgreSQL 9.1.1版本的具体实现,详细解释了pg_control_version字段的作用及初始化过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

接前文 初步学习pg_control文件之六  看   pg_control_version

以PostgreSQL9.1.1为了,其HISTORY文件中有如下的内容:

复制代码
Release 9.1.2

Release Date: 2011-12-05

This release contains a variety of fixes from 9.1.1. For information
about new features in the 9.1 major release, see the Section called
Release 9.1.
复制代码

 早就写死了: 

复制代码
static void
WriteControlFile(void)
{
    ...
    /*
     * Initialize version and compatibility-check fields
     */
    ControlFile->pg_control_version = PG_CONTROL_VERSION;
    ...

}
复制代码

pg_control.h中有:

/* Version identifier for this pg_control format */
#define PG_CONTROL_VERSION    903

WriteControlFile被  BootStrapXLOG 所调用(仅仅是安装的时候调用一次)







本文转自健哥的数据花园博客园博客,原文链接:http://www.cnblogs.com/gaojian/p/3228235.html,如需转载请自行联系原作者


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值