<simon@2ndquadrant.com> writes:
>> ohp@pyrenet.fr wrote:
>>> ... you end up with a core dump (signal 6) and an error saying that you
>>> can't stop before end of backup.
>>
>> Was this corrected? I don't see any followups to it in the archives.
>>
> Not by me, though I was definitely working on crash recovery then. ;-)
> Olivier is right in the explanation of this, but it doesn't seem that a
> core dump is the appropriate response.
The error is intentional. The reason it's converted to a core dump is
simply that the whole of recovery is run as a critical section, and so
any fatal error is promoted to PANIC.
We could think about a different rule about whether to force a core dump
in these circumstances, but I can't say that I am very excited about it.
I'd rather have the dump and not need it than vice versa.
regards, tom lane