Ending a transaction

A transaction ends either successfully through an explicit commit command, or unsuccessfully in any of a number of ways. The following are the ways to end a transaction:

After a commit or after an abort, the transaction will no longer accept any queries to execute. Ending a transaction more than once is also an error, except that aborting it multiple times is tolerated to facilitate error handling.