Re: Memory leaks using refcursors

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Memory leaks using refcursors
Дата
Msg-id 6135.1169073075@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Memory leaks using refcursors  ("Guillaume Smet" <guillaume.smet@gmail.com>)
Ответы Re: Memory leaks using refcursors  ("Guillaume Smet" <guillaume.smet@gmail.com>)
Re: Memory leaks using refcursors  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc
"Guillaume Smet" <guillaume.smet@gmail.com> writes:
> Isn't there a way to keep the cursor name and close it automatically
> when the statement or the resulting result set is closed?

While I agree that the driver probably should do that, I'm not sure why
you are having a problem.  A cursor doesn't normally accumulate its
result set in memory on the backend side, so I wouldn't have expected
all that big a memory leak.  What queries are you executing?

            regards, tom lane

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

Предыдущее
От: "Guillaume Smet"
Дата:
Сообщение: Re: Memory leaks using refcursors
Следующее
От: "Guillaume Smet"
Дата:
Сообщение: Re: Memory leaks using refcursors