Re: Out-of-memory error reports in libpq

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Out-of-memory error reports in libpq
Дата
Msg-id 604350.1627505473@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Out-of-memory error reports in libpq  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> I should probably know this, but I don't. Nor did I quickly find an answer. I
> assume gettext() reliably and reasonably deals with OOM?

I've always assumed that their fallback in cases of OOM, can't read
the message file, yadda yadda is to return the original string.
I admit I haven't gone and checked their code, but it'd be
unbelievably stupid to do otherwise.

> Looking in the gettext code I'm again scared by the fact that it takes locks
> during gettext (because of stuff like erroring out of signal handlers, not
> OOMs).

Hm.

            regards, tom lane



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [PATCH] test/ssl: rework the sslfiles Makefile target
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] test/ssl: rework the sslfiles Makefile target