Re: Misleading panic message in backend/access/transam/xlog.c - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Misleading panic message in backend/access/transam/xlog.c
Date
Msg-id 3BB1E07D-6C0C-47B8-B2C6-3EB9D38BC0C8@anarazel.de
Whole thread Raw
In response to Re: Misleading panic message in backend/access/transam/xlog.c  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Misleading panic message in backend/access/transam/xlog.c  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers

On January 9, 2019 5:01:40 PM PST, Michael Paquier <michael@paquier.xyz> wrote:
>On Wed, Jan 09, 2019 at 08:10:43AM -0800, Andres Freund wrote:
>> I'm quite unenthused about that. If anything, I'd remove detail and
>use
>> the standard error message about not being able to write to a file,
>and
>> include the full path.
>
>Partially agreed.  Those messages have been left out of 56df07b
>because they include some context about the offset and the length, and
>I don't think that we simply want to remove that information.  What
>about making the offset and the length part of an extra errdetail, and
>switch the main error string to a more generic one?

IIRC we have other such errors including offset and length (and if not we'll grow some). It should be formatted as a
geneticwrite error with the file name, no reference to log file, etc, even if there's no precedent. 

Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Misleading panic message in backend/access/transam/xlog.c
Next
From: Andreas Karlsson
Date:
Subject: Re: Early WIP/PoC for inlining CTEs