摘要: 查询SourceCode有的时候感觉比较费劲。我想了一个方法,给所有同名或者名字类似的变量、函数全都单独改名,使得我在搜索的时候可以只搜索到我想要的。运行时也可以通过特定的LOG来定位。特此备忘! 阅读全文
posted @ 2013-08-02 15:08 健哥的数据花园 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 接前文 初步学习pg_control文件之十四再看如下这个:int MaxConnections;应该说,它是一个参考值,在global.c中有如下定义 /* * Primary determinants of sizes of shared-memory structures. MaxBackends is * MaxConnections + autovacuum_max_workers + 1 (it is computed by the GUC * assign hoo... 阅读全文
posted @ 2013-08-02 14:44 健哥的数据花园 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 接前文初步学习pg_control文件之十三看如下几个:/* * Parameter settings that determine if the WAL can be used for archival * or hot standby. */ int wal_level; int MaxConnections; int max_prepared_xacts; int max_locks_per_xact;PostgreSQL中多次用到了函数数组:/* ... 阅读全文
posted @ 2013-08-02 11:25 健哥的数据花园 阅读(838) 评论(0) 推荐(0) 编辑
摘要: 接前文,初步学习pg_control文件之十二看这个: * backupStartPoint is the redo pointer of the backup start checkpoint, if * we are recovering from an online backup and haven't reached the end of * backup yet. It is reset to zero when the end of backup is reached, and * we mustn't start up before that. A ... 阅读全文
posted @ 2013-08-02 10:14 健哥的数据花园 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 看这个链接:http://www.postgresql.org/docs/9.1/static/runtime-config-wal.html是这样说的:fsync (boolean)If this parameter is on, the PostgreSQL server will try to make sure that updates are physically written to disk, by issuing fsync() system calls or various equivalent methods (see wal_sync_method). This ensu 阅读全文
posted @ 2013-08-02 09:57 健哥的数据花园 阅读(745) 评论(0) 推荐(0) 编辑