v11 transaction semantics inside procedures - Mailing list pgsql-hackers

From Dave Cramer
Subject v11 transaction semantics inside procedures
Date
Msg-id CADK3HH+AvemrqbzYXm_mVC994Yv2TSa5YAyUSDm-xsQH9PUnug@mail.gmail.com
Whole thread Raw
Responses Re: v11 transaction semantics inside procedures  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
Is there somewhere that the transaction semantics inside a procedure are documented ? From what I can tell transactions start from the first DML statement and end implicitly when the procedure exits. Commit or Rollback can be called anytime inside the transaction and this implicitly starts another transaction.

Is there anything else I am missing ? Does DDL get applied after the transaction ends ?

I do find this somewhat surprising as Postgres typically requires a BEGIN statement to start a transaction block.

Thanks
Dave Cramer

pgsql-hackers by date:

Previous
From: Christoph Berg
Date:
Subject: Re: [patch] Support LLVM 7
Next
From: Tom Lane
Date:
Subject: Re: generating bootstrap entries for array types