In this article
When startup crashes during crash restart, 18.7 makes the postmaster exit rather than remain stuck; successful future recovery is a separate outcome.
PostgreSQL 18.7 fixes the postmaster becoming stuck when the startup subprocess crashes during crash restart. In that situation it should give up and exit, but previously failed to do so. The repair matters for supervision: a live parent process is not useful recovery progress when its required startup child has failed. A visible terminal outcome gives an external supervisor a clearer boundary than an indefinitely present but stalled process.
Process existence is weaker than recovery liveness
The release describes a parent that remains present after its startup subprocess fails. A process-based health check can therefore report something alive while recovery cannot proceed. A proposed qualification records the child failure and parent outcome, not only whether a PID exists. The test needs the crash-restart path specifically; killing an ordinary backend or testing a normal clean shutdown exercises different supervision relationships and does not establish the repaired behavior.
Exiting is the intended failure behavior
A regression test should not demand successful startup after deliberately crashing the required startup subprocess. The specified safeguard is that the postmaster gives up and exits instead of hanging. Capture exit information and diagnostics so the external orchestration layer can classify the event. The release does not prescribe an exact restart policy or a universal exit-code interpretation for every supervisor. Those remain part of the deployment’s own operational contract.
Supervisor recovery needs its own limits
Clear exit lets a supervisor react, but automatic restarting can still loop if the underlying startup failure persists. A proposed deployment exercise observes restart attempts, backoff and retained diagnostics after the repaired parent exit. It should not count repeated process creation as successful recovery. The patch removes one stuck state; it does not repair storage, configuration or another cause that made the startup subprocess crash in the first place.
Make readiness evidence explicit
After resolving the initiating problem, a later successful startup and application-level checks can establish recovery. Keep that evidence separate from the fault-injection result that established correct exit behavior. The release offers no availability percentage or recovery-time guarantee. Its practical contribution is a truthful failure boundary for supervision. Reporting the child failure, parent exit and eventual readiness as separate events gives operators a useful account of what the update fixed and what required additional action.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.