Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> If we do a shutdown immediate on the postmaster *after* the bgwriter has
> written a shutdown checkpoint, do we have any record that there was a
> panic stop? Do we enter recovery in that case? I think the answers are
> yes and no, but just checking.
Yeah, the postmaster would complain at exit, but the pg_control state
is already SHUTDOWN at that point. There'd be a log entry showing
abnormal archiver exit if the panic had had any actual effect on it.
regards, tom lane