postgresql/src/bin
Tom Lane 3c485ca8e6 Further improvements in pg_ctl's new wait-for-postmaster-start logic.
Add a postmaster_is_alive() test to the wait loop, so that we stop waiting
if the postmaster dies without removing its pidfile.  Unfortunately this
only helps after the postmaster has created its pidfile, since until then
we don't know which PID to check.  But if it never does create the pidfile,
we can give up in a relatively short time, so this is a useful addition
in practice.  Per suggestion from Fujii Masao, though this doesn't look
very much like his patch.

In addition, improve pg_ctl's ability to cope with pre-existing pidfiles.
Such a file might or might not represent a live postmaster that is going to
block our postmaster from starting, but the previous code pre-judged the
situation and gave up waiting immediately.  Now, we will wait for up to 5
seconds to see if our postmaster overwrites such a file.  This issue
interacts with Fujii's patch because we would make the wrong conclusion
if we did the postmaster_is_alive() test with a pre-existing PID.

All of this could be improved if we rewrote start_postmaster() so that it
could report the child postmaster's PID, so that we'd know a-priori the
correct PID to test with postmaster_is_alive().  That looks like a bit too
much change for so late in the 9.1 development cycle, unfortunately.
2011-06-01 13:09:07 -04:00
..
initdb Add example for replication in pg_hba.conf 2011-05-19 14:03:15 -04:00
pg_basebackup Make message more consistent 2011-05-30 12:43:14 -04:00
pg_config
pg_controldata
pg_ctl Further improvements in pg_ctl's new wait-for-postmaster-start logic. 2011-06-01 13:09:07 -04:00
pg_dump Suppress foreign data wrappers and foreign servers in partial dumps 2011-05-30 23:34:34 +03:00
pg_resetxlog
pgevent
psql Message improvement 2011-05-22 00:37:27 +03:00
scripts For create/dropdb, only connect once to the server since we now have a 2011-05-10 19:44:47 -04:00
Makefile