pgsql: The previous fix in CVS HEAD and 8.4 for handling the case where
В списке pgsql-committers по дате отправления:
| От | heikki@postgresql.org (Heikki Linnakangas) |
|---|---|
| Тема | pgsql: The previous fix in CVS HEAD and 8.4 for handling the case where |
| Дата | |
| Msg-id | 20100705092718.1C4FE7541D4@cvs.postgresql.org обсуждение |
| Список | pgsql-committers |
Log Message:
-----------
The previous fix in CVS HEAD and 8.4 for handling the case where a cursor
being used in a PL/pgSQL FOR loop is closed was inadequate, as Tom Lane
pointed out. The bug affects FOR statement variants too, because you can
close an implicitly created cursor too by guessing the "<unnamed portal X>"
name created for it.
To fix that, "pin" the portal to prevent it from being dropped while it's
being used in a PL/pgSQL FOR loop. Backpatch all the way to 7.4 which is
the oldest supported version.
Modified Files:
--------------
pgsql/src/backend/utils/mmgr:
portalmem.c (r1.118 -> r1.119)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/mmgr/portalmem.c?r1=1.118&r2=1.119)
pgsql/src/include/utils:
portal.h (r1.82 -> r1.83)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/portal.h?r1=1.82&r2=1.83)
pgsql/src/pl/plpgsql/src:
pl_exec.c (r1.259 -> r1.260)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_exec.c?r1=1.259&r2=1.260)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера