Greg Stark <[EMAIL PROTECTED]> writes: > Tom Lane <[EMAIL PROTECTED]> writes: >> however commit that and let the procedure launch its own transactions >> (compare to VACUUM, db-wide CLUSTER, etc) once we have read the >> procedure body from the catalogs and done any pre-parsing we want to do.
> Well I guess I'm wondering whether there's any need to commit at all. > If you do commit then you wouldn't be able to do something like: > CREATE PROCEDURE terminate_transaction() > COMMIT; > END PROCEDURE By commit I was thinking of CommitTransactionCommand, which isn't going to exit a pre-existing transaction block, so I'm not sure that we are disagreeing. One interesting point is whether it's possible for one procedure to call another, and if so what that means for the semantics. Is the inner procedure allowed to commit a transaction started by the outer one? regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly