Re: Internal error codes triggered by tests

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Internal error codes triggered by tests
Дата
Msg-id ZpjEYLeMzy3QIjrG@paquier.xyz
обсуждение исходный текст
Ответ на Re: Internal error codes triggered by tests  (Daniel Gustafsson <daniel@yesql.se>)
Ответы Re: Internal error codes triggered by tests
Список pgsql-hackers
On Fri, Jul 12, 2024 at 10:41:14PM +0200, Daniel Gustafsson wrote:
> Mapping this case to ERRCODE_NAME_TOO_LONG seems like a legit improvement, even
> though the error is likely to be quite rare in production.

Hmm.  This is interesting, still it could be confusing as
ERRCODE_NAME_TOO_LONG is used only for names, when they are longer
than NAMEDATALEN, so in context that's a bit different than a longer
file name.

How about using a new error code in class 58, say a
ERRCODE_FILE_NAME_TOO_LONG like in the attached?
ERRCODE_DUPLICATE_FILE is like that; it exists just for the mapping
with EEXIST.
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Nitin Jadhav
Дата:
Сообщение: Re: Inconsistency in reporting checkpointer stats
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Internal error codes triggered by tests