Simon Riggs <simon@2ndQuadrant.com> writes:
> On Thu, 2009-01-08 at 22:31 +0200, Heikki Linnakangas wrote:
>> When a backend dies with FATAL, it writes an abort record before exiting.
>>
>> (I was under the impression it doesn't until few minutes ago myself,
>> when I actually read the shutdown code :-))
> Not in all cases; keep reading :-)
If it doesn't, that's a bug. A FATAL exit is not supposed to leave the
shared state corrupted, it's only supposed to be a forcible session
termination. Any open transaction should be rolled back.
regards, tom lane