Re: Postgres resources not released after call PQclear

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Postgres resources not released after call PQclear
Дата
Msg-id 21547.1396888476@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Postgres resources not released after call PQclear  (Souheila Hechaichi <Souheila.Hechaichi@asg.com>)
Список pgsql-bugs
Souheila Hechaichi <Souheila.Hechaichi@asg.com> writes:
> I observe that when the row number about a SELECT SQL request is equal to zero, the function PQclear does not release
theallocated resources and a memory leak are detected into my application. 

This claim is, to be frank, pretty astonishing.  Can you produce a
self-contained test case to demonstrate that there's a leak?

> And I call the function _CrtDumpMemoryLeaks() at the end of my application, to display all the memory leak.

I doubt that that proves anything at all.  Such a function can't tell
whether libpq is holding onto memory internally.  If you see growth in
memory usage over repeated query cycles, then it would be interesting.

            regards, tom lane

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

Предыдущее
От: Souheila Hechaichi
Дата:
Сообщение: Postgres resources not released after call PQclear
Следующее
От: David Johnston
Дата:
Сообщение: Re: BUG #9896: Bug in FULL OUTER JOIN