On 4/18/2016 5:41 PM, david(at)andl(dot)org wrote:
> Are you sure you meant it like that? I already have BEGIN/COMMIT inside a function and it works perfectly. If it did not, then it would be impossible to use BEGIN/COMMIT in any language handler, since every call to a language handler is a call to a function.
the transaction has already been started before your function is called.
and you can not issue a COMMIT from anywhere but the top level. you CAN
have savepoints, which act something like nested transactions within a
function.
--
john r pierce, recycling bits in santa cruz