Chapter 43.8. "Transaction Management" fails to state two critical restrictions

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: bryn(at)yugabyte(dot)com
Subject: Chapter 43.8. "Transaction Management" fails to state two critical restrictions
Date: 2019-09-30 04:11:47
Message-ID: 156981670710.26184.2375673917366850651@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/11/plpgsql-transactions.html
Description:

This chapter fails to state:

(1) If a PL/pgSQL procedure issues "commit" then it must be called with
AUTOCOMMIT set to On. This is counter-intuitive. You'd expect the
opposite.

(2) If a PL/pgSQL procedure has a block statement with an exception section
(this might be the procedure's defining block, or an inner block) then that
block's executabe section must not issue "commit". Doing so causes a
run-time error.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Aramaki Zyake 2019-09-30 07:46:56 RE: Required locks for ANALYZE
Previous Message Tom Lane 2019-09-28 20:39:38 Re: Fix contributor name-related inconsistencies in release-12.sgml