postgresql@18: add stop_timeout 120 - #295196
Conversation
3c8b6f3 to
8d2cf7e
Compare
|
馃 An automated task has requested bottles to be published to this PR. Caution Please do not push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from. If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch. |
|
|
When PostgreSQL is killed abruptly (SIGKILL), it leaves behind postmaster.pid and lock files in the data directory, preventing a subsequent start until those files are manually removed. A 120-second graceful stop timeout allows PostgreSQL to shut down cleanly before launchd escalates to a forced kill.
8d2cf7e to
06f5a5b
Compare
|
Rebased on main |
|
馃 An automated task has requested bottles to be published to this PR. Caution Please do not push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from. If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch. |
|
@IngmarStein are you adding this to the other PostgreSQL versions or should we do it? |
|
@iMichka I'm currently traveling and would appreciate if you could apply this to the other formulae. Otherwise, I can take this on in around two weeks. |
|
Done for all versions up to version 14. |
Follow up from Homebrew#295196
Follow up from Homebrew#295196
Follow up from Homebrew#295196
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>?brew test <formula>?brew audit --strict <formula>(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it passbrew audit --new <formula>?AI-assisted contribution by Claude Code (Opus 5) of ~5% of the work. Validation steps done by AI:
brew audit --strictpass,brew stylepass.Adds
stop_timeout 120to the service block to gracefully shut downPostgreSQL before launchd escalates to a forced kill. When PostgreSQL is
killed abruptly, it leaves behind postmaster.pid and lock files in the
data directory, requiring manual cleanup.
Uses
stop_timeoutfrom Homebrew/brew#23294 (released in https://github.com/Homebrew/brew/releases/tag/6.0.13).