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
Ответ на
Список
Дерево обсуждения
Misleading panic message in backend/access/transam/xlog.c Michael Banck <michael.banck@credativ.de>
Re: Misleading panic message in backend/access/transam/xlog.c Andres Freund <andres@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 Andres Freund <andres@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 Robert Haas <robertmhaas@gmail.com>
Re: Misleading panic message in backend/access/transam/xlog.c Magnus Hagander <magnus@hagander.net>


On January 9, 2019 5:01:40 PM PST, Michael Paquier  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 genetic write 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
Дата:
От: Andreas Karlsson
Дата:
FAQ