pgsql: Call PLy_spi_execute_fetch_result inside the try/catch block

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Call PLy_spi_execute_fetch_result inside the try/catch block
Дата
Msg-id E1PhV9M-0004ZN-Sx@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Refactor PLy_spi_prepare to save two levels of indentation
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Document the "S" option for psql's \dn command in the psql help