PL/pgSQL: Nested CALL with transactions

Peter Eisentraut <peter_e@gmx.net>

Commit: d92bc83c48bdea9888e64cf1e2edbac9693099c9
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2018-03-28T17:31:27Z
Releases: 11.0
PL/pgSQL: Nested CALL with transactions

So far, a nested CALL or DO in PL/pgSQL would not establish a context
where transaction control statements were allowed.  This fixes that by
handling CALL and DO specially in PL/pgSQL, passing the atomic/nonatomic
execution context through and doing the required management around
transaction boundaries.

Reviewed-by: Tomas Vondra <tomas.vondra@2ndquadrant.com>

Files

Documentation touched