pgsql: Fix an error when a set-returning function fails halfway through

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix an error when a set-returning function fails halfway through
Date: 2011-01-18 22:14:29
Message-ID: E1PfJor-0003BD-6W@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix an error when a set-returning function fails halfway through the execution

If the function using yield to return rows fails halfway, the iterator
stays open and subsequent calls to the function will resume reading
from it. The fix is to unref the iterator and set it to NULL if there
has been an error.

Jan Urbański

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=88047e59ba12479ef9adcaf3dee61b48566ce6eb

Modified Files
--------------
src/pl/plpython/plpython.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message User Masao_fujii 2011-01-19 07:55:23 pgbulkload - pgbulkload: Fix some typos in Japanese document.
Previous Message Bruce Momjian 2011-01-18 20:53:57 pgsql: In test_fsync, adjust test headings to match wal_sync_method val