Re: psql memory leaks

Поиск
Список
Период
Сортировка
От Corey Huinker
Тема Re: psql memory leaks
Дата
Msg-id CADkLM=cAJiu-e3BzLOr=gNdRZ+VwcAXinpAipGwvHVWbKAu7mA@mail.gmail.com
обсуждение исходный текст
Ответ на psql memory leaks  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Ответы Re: psql memory leaks  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On Mon, Feb 20, 2023 at 9:56 PM Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote:
I noticed that \bind is leaking memory for each option.

=# SELECT $1, $2, $3 \ bind 1 2 3 \g

The leaked memory blocks are comming from
psql_scan_slash_option(). The attached small patch resolves that
issue.  I looked through the function's call sites, but I didn't find
the same mistake.

regards.


Good catch. Patch passes make check-world.
 

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Commitfest Manager
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Commitfest Manager