pgsql: In a PL/pgSQL "FOR cursor" statement, the statements executed in

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: In a PL/pgSQL "FOR cursor" statement, the statements executed in
Date: 2010-06-21 09:47:29
Message-ID: 20100621094729.C34D87541D4@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/pl/plpgsql/src:
pl_exec.c (r1.258 -> r1.259)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_exec.c?r1=1.258&r2=1.259)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2010-06-21 09:49:58 pgsql: In a PL/pgSQL "FOR cursor" statement, the statements executed in
Previous Message Tom Lane 2010-06-21 00:14:54 pgsql: Fix mishandling of whole-row Vars referencing a view or