Re: Misleading panic message in backend/access/transam/xlog.c

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Misleading panic message in backend/access/transam/xlog.c
Дата
Msg-id 3BB1E07D-6C0C-47B8-B2C6-3EB9D38BC0C8@anarazel.de
обсуждение исходный текст
Ответ на Re: Misleading panic message in backend/access/transam/xlog.c  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Misleading panic message in backend/access/transam/xlog.c  (Michael Paquier <michael@paquier.xyz>)
Список 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 по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Misleading panic message in backend/access/transam/xlog.c
Следующее
От: Andreas Karlsson
Дата:
Сообщение: Re: Early WIP/PoC for inlining CTEs