摘要: 基本关系是:BackgroundWriterMain 循环中,调用 BgBufferSync() -->SyncOneBuffer -->FlushBuffer -->smgrwrite看代码:/* * Main entry point for bgwriter process * * This is invoked from AuxiliaryProcessMain, which has already created the * b... 阅读全文
posted @ 2012-10-24 16:59 健哥的数据花园 阅读(815) 评论(1) 推荐(1) 编辑
摘要: 先看代码:src\backend\storage\buffer\bufmgr.c/* * BgBufferSync -- Write out some dirty buffers in the pool. * * This is called periodically by the background writer process. ... 阅读全文
posted @ 2012-10-24 15:32 健哥的数据花园 阅读(879) 评论(0) 推荐(0) 编辑
摘要: 代码缩略如下:/* * Main entry point for bgwriter process * * This is invoked from AuxiliaryProcessMain, which has already created the ... 阅读全文
posted @ 2012-10-24 15:05 健哥的数据花园 阅读(592) 评论(0) 推荐(0) 编辑
摘要: 看 Postmaster 中如下的代码 /* StartChildProcess -- start an auxiliary process for the postmaster * * xlop determines what kind of child will be started. All child types * initially go to AuxiliaryProcessMain, which will hand... 阅读全文
posted @ 2012-10-24 14:31 健哥的数据花园 阅读(2646) 评论(0) 推荐(0) 编辑
摘要: 启动PostgreSQL 进程后,可以看到:[root@localhost ~]# ps -ef | grep post root 2991 2925 0 10:42 pts/1 00:00:00 su - postgres postgres 2992 2991 0 10:42 pts/1 00:00:00 -bash postgres 3029 2992 0 10:42 pts/1 00:00:00 /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data po... 阅读全文
posted @ 2012-10-24 11:22 健哥的数据花园 阅读(5941) 评论(0) 推荐(0) 编辑
摘要: 如果设定了虚拟机属性的 General Advance 的Shared Clipboard: Bidirectional 后, 仍然不行。则还需装 Virtual Box 的 增强patch。 然后再在虚拟机启动后,Device-->Install Guest Addition挂Guest Addition光盘。cd /mediacp -r ./VBOXADDITIONS_4.2.0_80737/ /tmp/plus/然后进入/tmp/plus 目录,执行安装程序。 阅读全文
posted @ 2012-10-24 11:10 健哥的数据花园 阅读(3705) 评论(0) 推荐(0) 编辑