OSDN Git Service

Under new theory of operation wherein postmaster forks children
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Jul 2001 00:06:23 +0000 (00:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Jul 2001 00:06:23 +0000 (00:06 +0000)
commit109d50dd35db93a9d6c50bcbe2481518c3789829
tree227347e5a48ec6a12f04efc1357cc5363c4ca1fa
parent10e9cd22991b352685fe49cfa92dbcd72048c711
Under new theory of operation wherein postmaster forks children
immediately, we will fork a child even if the database state does not
permit connections to be accepted (eg, we are in recovery mode).
The child process will correctly reject the connection and exit as
soon as it's finished collecting the connection request message.
However, this means that reaper() must be prepared to see child
process exit signals even while it's waiting for startup or shutdown
process to finish.  As was, a connection request arriving during a
database recovery or shutdown would cause postmaster abort.
src/backend/postmaster/postmaster.c