Improve "pg_ctl -w start" server detection by writing the postmaster
Bruce Momjian <bruce@momjian.us>
Improve "pg_ctl -w start" server detection by writing the postmaster port and socket directory into postmaster.pid, and have pg_ctl read from that file, for use by PQping().
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/pg_ctl-ref.sgml | modified | +4 −47 |
| src/backend/utils/init/miscinit.c | modified | +17 −13 |
| src/bin/pg_ctl/pg_ctl.c | modified | +91 −98 |