Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Tom Lane wrote:
> >> 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.
>
> > Is this a TODO?
>
> Yeah, probably. Until this go-round it wasn't worth the trouble, but
> now it seems like the one remaining roadblock to making pg_ctl start -w
> fully bulletproof.
Done:
Improve pg_ctl's detection of running postmasters
* http://archives.postgresql.org/pgsql-hackers/2011-06/msg00000.php
* http://archives.postgresql.org/pgsql-committers/2011-06/msg00001.php
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +