Andres Freund <andres@anarazel.de> writes:
> On 2018-05-08 01:32:33 -0400, Tom Lane wrote:
>> There are not any better alternatives. We can't just set a flag in the
>> signal handler and hope that control will someday reach a place that
>> notices the flag. We could exit without attempting to report anything,
>> but nobody would find that user-friendly. So we try to report, in the
>> full understanding that sometimes it won't work.
> It'd be fairly unproblematic to write an untranslated message out.
To stderr, maybe. Across an SSL-encrypted client connection? You're
dreaming.
regards, tom lane