Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>>> Right, we can just close the pipe. I was thinking of adding another
>>> signal but that's obviously easier. Will work on making this happen.
>>
>> ... except there is no postmaster pipe anymore --- back to plan A.
> Did we get a resolution on this?
Yes, I committed the change several days ago. The pgstat processes are
told to shut down at the same time the shutdown checkpoint starts.
I didn't actually make the postmaster wait for them, but I'd think that
under normal circumstances the shutdown checkpoint will take longer.
regards, tom lane