Peter Eisentraut <peter_e@gmx.net> writes:
> I played around a little with signal handling to collect the dying
> postmaster and report and error; see attached rough patch. I'm not
> exactly understanding how this works though. I would expect lots of
> psql zombies for example, because those go through the same
> spawn_process() call, but I'm not seeing any.
That's because wait_for_tests wait()s for them.
AFAICS the only way you'd end up with a zombie postmaster is if pg_ctl
stop fails, but I'm failing to understand why that's likely to happen.
regards, tom lane