Adjust postmaster to recognize that a lockfile containing its parent's PID
authorTom Lane <[email protected]>
Fri, 1 Oct 2004 18:30:25 +0000 (18:30 +0000)
committerTom Lane <[email protected]>
Fri, 1 Oct 2004 18:30:25 +0000 (18:30 +0000)
commitc8196c87a76b86c514e1f245624a21ab068c9012
treefc439824acbb1b749b4a022609a2ac203563a976
parent8bbfa16624e57921712d350b757e11c6258b4561
Adjust postmaster to recognize that a lockfile containing its parent's PID
must be stale.  Tweak example startup scripts to not use pg_ctl but launch
the postmaster directly, thereby ensuring that only the postmaster's direct
parent shell will be a postgres-owned process.  In combination these should
fix the longstanding problem of the postmaster sometimes refusing to start
during reboot because it thinks the old lockfile is not stale.
contrib/start-scripts/PostgreSQL.darwin
contrib/start-scripts/freebsd
contrib/start-scripts/linux
src/backend/utils/init/miscinit.c