Re: Probable memory leak with ECPG and AIX

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Probable memory leak with ECPG and AIX
Дата
Msg-id 2865639.1641054902@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Probable memory leak with ECPG and AIX  (Noah Misch <noah@leadboat.com>)
Ответы Re: Probable memory leak with ECPG and AIX  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
Noah Misch <noah@leadboat.com> writes:
> I get the same results.  The leak arises because AIX freelocale() doesn't free
> all memory allocated in newlocale().  The following program uses trivial
> memory on GNU/Linux, but it leaks like you're seeing on AIX:

Bleah.

> If you have access to file an AIX bug, I recommend doing so.  If we want
> PostgreSQL to work around this, one idea is to have ECPG do this newlocale()
> less often.  For example, do it once per process or once per connection
> instead of once per ecpg_do_prologue().

It's worse than that: see also ECPGget_desc().  Seems like a case
could be made for doing something about this just on the basis
of cycles expended, never mind freelocale() bugs.

            regards, tom lane



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

Предыдущее
От: Zhihong Yu
Дата:
Сообщение: Re: Collecting statistics about contents of JSONB columns
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: using extended statistics to improve join estimates