pgsql: Call PLy_spi_execute_fetch_result inside the try/catch block

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Call PLy_spi_execute_fetch_result inside the try/catch block
Date: 2011-01-24 22:44:40
Message-ID: E1PhV9M-0004ZN-Sx@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Call PLy_spi_execute_fetch_result inside the try/catch block

This way errors from fetching tuples are correctly reported as errors
in the SPI call. While at it, avoid palloc(0).

Jan Urbański

Branch
------
master

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

Modified Files
--------------
src/pl/plpython/plpython.c | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message noreply 2011-01-24 23:08:41 [PGBuildFarm/server-code] ffe3a5: remove options not used in failures case
Previous Message Peter Eisentraut 2011-01-24 20:13:54 pgsql: Refactor PLy_spi_prepare to save two levels of indentation