]> granicus.if.org Git - postgresql/commit
In a PL/pgSQL "FOR cursor" statement, the statements executed in the loop
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 21 Jun 2010 09:49:58 +0000 (09:49 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 21 Jun 2010 09:49:58 +0000 (09:49 +0000)
commit855d440a2f910d690deccfd5f81aaf6b190f16a8
tree414b5ddc42c62a5df71cb70d6308e291f9186339
parentc4ac2ff765d9b68a3ff2a3461804489721770d06
In a PL/pgSQL "FOR cursor" statement, the statements executed in the loop
might close the cursor,  rendering the Portal pointer to it invalid.
Closing the cursor in the middle of the loop is not a very sensible thing
to do, but we must handle it gracefully and throw an error instead of
crashing.
src/pl/plpgsql/src/pl_exec.c