摘要: 可以说,postmaster是PostgreSQL服务器端的总代理了。通过它,把客户端的请求转给新生成的postgres 进程。postmaster.c 的代码注释中有如下的描述:When a request message is received, we now fork() immediately.The child process performs authentication of the request, and then becomes a backend if successful.This allows the auth code to be written in a s... 阅读全文
posted @ 2012-07-19 14:41 健哥的数据花园 阅读(483) 评论(0) 推荐(0) 编辑
摘要: postmaster.c 中的BackendStartup(Port *port)函数,其中有如下代码:/* in parent, successful fork */ ereport(DEBUG2, (errmsg_internal("forked new backend, pid=%d socket=%d", (int) pid, port->sock))); 为了方便调试,改为:/* ... 阅读全文
posted @ 2012-07-19 13:41 健哥的数据花园 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 在PostgreSQL的源代码 postmaster.c 的BackendStartup 函数中,有如下的部分(中间部分省略):#ifdef EXEC_BACKEND pid = backend_forkexec(port); #else /* !EXEC_BACKEND */ pid = fork_process(); .... #en... 阅读全文
posted @ 2012-07-19 11:30 健哥的数据花园 阅读(587) 评论(0) 推荐(0) 编辑
摘要: PostgreSQL的configure 脚本中有如下代码:if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@& 阅读全文
posted @ 2012-07-19 10:52 健哥的数据花园 阅读(1160) 评论(0) 推荐(0) 编辑
摘要: 磨砺技术珠矶,践行数据之道,追求卓越价值 回到上一级页面:PostgreSQL内部结构与源代码研究索引页 回到顶级页面:PostgreSQL索引页 [作者:高健@博客园 luckyjackgao@gmail.com] PostgreSQL中,configure中第一段是如下的代码: if test 阅读全文
posted @ 2012-07-19 10:46 健哥的数据花园 阅读(1235) 评论(0) 推荐(0) 编辑
摘要: 磨砺技术珠矶,践行数据之道,追求卓越价值 回到上一级页面:PostgreSQL杂记页 回到顶级页面:PostgreSQL索引页作者:高健@博客园 luckyjackgao@gmail.comPostgreSQL的configure 脚本中有:if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@& 阅读全文
posted @ 2012-07-19 09:30 健哥的数据花园 阅读(3979) 评论(0) 推荐(0) 编辑