Re: BUG #5302: WIN1252 encoding causes server memory leak

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5302: WIN1252 encoding causes server memory leak
Дата
Msg-id 7612.1264882382@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #5302: WIN1252 encoding causes server memory leak  ("Florian Nigsch" <contact@flo.nigsch.com>)
Список pgsql-bugs
"Florian Nigsch" <contact@flo.nigsch.com> writes:
> The following rapidly consumes server memory:

> -- Causes leak:
> SET client_encoding TO 'WIN1252';

> BEGIN;
> CREATE TEMP TABLE t1(pk INT PRIMARY KEY);

> -- Repeat 1000 times
> DECLARE mycur CURSOR WITH HOLD FOR SELECT * FROM t1;
> FETCH 100 IN mycur;
> SAVEPOINT mysp;
> CLOSE mycur;
> RELEASE mysp;
> -- End repeat

I've applied a patch for this, but I have to say that using a SAVEPOINT
around a CLOSE is an awfully expensive use of a savepoint.  You might
want to nag the psqlodbc people to see if they can't avoid that.

            regards, tom lane

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: BUG #5303: Upgrade failure due to sever.key permissions
Следующее
От: Steve White
Дата:
Сообщение: Re: BUG #5272: PL/Python SELECT: return composite fields as dict, not str