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(-)