git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 2330d9c) | patch
The previous fix in CVS HEAD and 8.4 for handling the case where a cursor
Mon, 5 Jul 2010 09:27:18 +0000 (09:27 +0000)
Mon, 5 Jul 2010 09:27:18 +0000 (09:27 +0000)
commit eb81b6509f4c9109ecf8839d8c482cc597270687
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.
src/backend/utils/mmgr/portalmem.c diff | blob | blame | history
src/include/utils/portal.h diff | blob | blame | history
src/pl/plpgsql/src/pl_exec.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /