Re: Correct SQLSTATE for ENOMEM in file access

Поиск
Список
Период
Сортировка
От Alexander Kuzmenkov
Тема Re: Correct SQLSTATE for ENOMEM in file access
Дата
Msg-id CALzhyqwg-atPhwH3jeNQdrnj5eP2mvx-TaBo3w1r82vzBrC9QA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Correct SQLSTATE for ENOMEM in file access  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Correct SQLSTATE for ENOMEM in file access  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, Feb 2, 2024 at 8:12 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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.

It's reachable, that's how I noticed. I'm seeing logs like "XX000:
could not load library \"/usr/lib/postgresql/15/lib/plpgsql.so\": out
of memory" from internal_load_library and so on. Not sure what is the
exact configuration required to reproduce this, probably at least the
overcommit should be disabled.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Correct SQLSTATE for ENOMEM in file access
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: ResourceOwner refactoring