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

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Fix an error when a set-returning function fails halfway through
Дата
Msg-id E1PfJor-0003BD-6W@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Skip dropped attributes when converting Python objects to tuples
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Free plan values in the PLyPlanObject dealloc function