pgsql: Reword SPI_ERROR_TRANSACTION errors in PL/pgSQL

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Reword SPI_ERROR_TRANSACTION errors in PL/pgSQL
Date: 2018-06-26 09:46:17
Message-ID: E1fXkYD-00084a-9p@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Reword SPI_ERROR_TRANSACTION errors in PL/pgSQL

The previous message for SPI_ERROR_TRANSACTION claimed "cannot begin/end
transactions in PL/pgSQL", but that is no longer true. Nevertheless,
the error can still happen, so reword the messages. The error cases in
exec_prepare_plan() could never happen, so remove them.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c9301deb9bf86aaf9144a66026bc121a3eededee

Modified Files
--------------
.../plpgsql/src/expected/plpgsql_transaction.out | 16 +++++++++++-
src/pl/plpgsql/src/pl_exec.c | 29 +++-------------------
src/pl/plpgsql/src/sql/plpgsql_transaction.sql | 14 ++++++++++-
3 files changed, 32 insertions(+), 27 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2018-06-26 11:59:17 pgsql: Add PGTYPESchar_free() to avoid cross-module problems on Windows
Previous Message Thomas Munro 2018-06-26 07:12:44 pgsql: Move RecoveryLockList into a hash table.