From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Reword SPI_ERROR_TRANSACTION errors in PL/pgSQL
Date: Tue, 26 Jun 2018 09:46:17 +0000
Message-ID: <E1fXkYD-00084a-9p@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter_e@gmx.net
Subject: Re: pgsql: Reword SPI_ERROR_TRANSACTION errors in PL/pgSQL
In-Reply-To: <E1fXkYD-00084a-9p@gemulon.postgresql.org>
References: <E1fXkYD-00084a-9p@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox