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.
Showing
- contrib/start-scripts/PostgreSQL.darwin 16 additions, 10 deletionscontrib/start-scripts/PostgreSQL.darwin
- contrib/start-scripts/freebsd 15 additions, 8 deletionscontrib/start-scripts/freebsd
- contrib/start-scripts/linux 17 additions, 11 deletionscontrib/start-scripts/linux
- src/backend/utils/init/miscinit.c 24 additions, 8 deletionssrc/backend/utils/init/miscinit.c
Please register or sign in to comment