Improve corner cases in pg_ctl's new wait-for-postmaster-startup code.
Improve corner cases in pg_ctl's new wait-for-postmaster-startup code.

With "-w -t 0", we should report "still starting up", not "ok".  If we
fall out of the loop without ever being able to call PQping (because we
were never able to construct a connection string), report "no response",
not "ok".  This gets rid of corner cases in which we'd claim the server
had started even though it had not.

Also, if the postmaster.pid file is not there at any point after we've
waited 5 seconds, assume the postmaster has failed and report that, rather
than almost-certainly-fruitlessly continuing to wait.  The pidfile should
appear almost instantly even when there is extensive startup work to do,
so 5 seconds is already a very conservative figure.  This part is per a
gripe from MauMau --- there might be better ways to do it, but nothing
simple enough to get done for 9.1.

tpostgres-projects/tPostgres,arcivanov/postgres-xl,pavanvd/postgres-xl,yazun/postgres-xl,greenplum-db/gpdb,yazun/postgres-xl,techdragon/Postgres-XL,Postgres-XL/Postgres-XL,xinzweb/gpdb,adam8157/gpdb,lisakowen/gpdb,oberstet/postgres-xl,arcivanov/postgres-xl,techdragon/Postgres-XL,ashwinstar/gpdb,techdragon/Postgres-XL,lisakowen/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,yazun/postgres-xl,adam8157/gpdb,ashwinstar/gpdb,postmind-net/postgres-xl,lisakowen/gpdb,pavanvd/postgres-xl,snaga/postgres-xl,adam8157/gpdb,adam8157/gpdb,snaga/postgres-xl,greenplum-db/gpdb,xinzweb/gpdb,snaga/postgres-xl,50wu/gpdb,arcivanov/postgres-xl,pavanvd/postgres-xl,oberstet/postgres-xl,techdragon/Postgres-XL,ovr/postgres-xl,ashwinstar/gpdb,zeroae/postgres-xl,lisakowen/gpdb,xinzweb/gpdb,tpostgres-projects/tPostgres,adam8157/gpdb,greenplum-db/gpdb,oberstet/postgres-xl,xinzweb/gpdb,50wu/gpdb,oberstet/postgres-xl,zeroae/postgres-xl,yazun/postgres-xl,greenplum-db/gpdb,greenplum-db/gpdb,adam8157/gpdb,jmcatamney/gpdb,ovr/postgres-xl,50wu/gpdb,xinzweb/gpdb,Postgres-XL/Postgres-XL,kmjungersen/PostgresXL,kmjungersen/PostgresXL,greenplum-db/gpdb,postmind-net/postgres-xl,jmcatamney/gpdb,arcivanov/postgres-xl,arcivanov/postgres-xl,50wu/gpdb,greenplum-db/gpdb,tpostgres-projects/tPostgres,oberstet/postgres-xl,snaga/postgres-xl,ashwinstar/gpdb,50wu/gpdb,yazun/postgres-xl,adam8157/gpdb,kmjungersen/PostgresXL,xinzweb/gpdb,postmind-net/postgres-xl,snaga/postgres-xl,kmjungersen/PostgresXL,ovr/postgres-xl,zeroae/postgres-xl,ovr/postgres-xl,Postgres-XL/Postgres-XL,jmcatamney/gpdb,tpostgres-projects/tPostgres,arcivanov/postgres-xl,greenplum-db/gpdb,xinzweb/gpdb,lisakowen/gpdb,jmcatamney/gpdb,postmind-net/postgres-xl,50wu/gpdb,tpostgres-projects/tPostgres,ashwinstar/gpdb,50wu/gpdb,zeroae/postgres-xl,lisakowen/gpdb,jmcatamney/gpdb,adam8157/gpdb,zeroae/postgres-xl,Postgres-XL/Postgres-XL,lisakowen/gpdb,postmind-net/postgres-xl,Postgres-XL/Postgres-XL,kmjungersen/PostgresXL,techdragon/Postgres-XL,lisakowen/gpdb,ashwinstar/gpdb,pavanvd/postgres-xl,50wu/gpdb,xinzweb/gpdb,ovr/postgres-xl,pavanvd/postgres-xl,jmcatamney/gpdb,ashwinstar/gpdb