Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> The strange thing is that we're seeing a "forked a new backend" line
> _after_ the shutdown signal was received.
No, nothing surprising about that if you had clients that might try to
connect at that time. The "canAcceptConnections" test doesn't occur
till after the fork, mainly because we don't want the postmaster risking
blocking itself trying to send error messages to clients.
regards, tom lane