pgsql: Call PLy_spi_execute_fetch_result inside the try/catch block - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Call PLy_spi_execute_fetch_result inside the try/catch block
Date
Msg-id E1PhV9M-0004ZN-Sx@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Refactor PLy_spi_prepare to save two levels of indentation
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Document the "S" option for psql's \dn command in the psql help