Re: Correct SQLSTATE for ENOMEM in file access

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Correct SQLSTATE for ENOMEM in file access
Дата
Msg-id 3229197.1706901133@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Correct SQLSTATE for ENOMEM in file access  (Alexander Kuzmenkov <akuzmenkov@timescale.com>)
Ответы Re: Correct SQLSTATE for ENOMEM in file access  (Alexander Kuzmenkov <akuzmenkov@timescale.com>)
Список pgsql-hackers
Alexander Kuzmenkov <akuzmenkov@timescale.com> writes:
> Looking through the logs of some server that were experiencing out of
> memory errors, I noticed that errcode_for_file_access() reports
> ERRCODE_INTERNAL_ERROR for ENOMEM, while the correct SQLSTATE for this
> should probably be ERRCODE_OUT_OF_MEMORY. Attached is a small patch to
> fix this.

Hmm, do you think this is actually reachable?  AFAIK we should only be
calling errcode_for_file_access() after functions that are unlikely to
report ENOMEM.

            regards, tom lane



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

Предыдущее
От: Alena Rybakina
Дата:
Сообщение: Re: POC, WIP: OR-clause support for indexes
Следующее
От: Alexander Kuzmenkov
Дата:
Сообщение: Re: Correct SQLSTATE for ENOMEM in file access