- Once prepared, a transaction can later be committed or rolled
- back with COMMIT PREPARED or
- ROLLBACK PREPARED, respectively. Those commands
- can be issued from any session, not only the one that executed the
- original transaction.
+ Once prepared, a transaction can later be committed or rolled back
+ with
+ or ,
+ respectively. Those commands can be issued from any session, not
+ only the one that executed the original transaction.
Notes
- This command must be used inside a transaction block. Use
- BEGIN> to start one.
+ This command must be used inside a transaction block. Use
+ linkend="sql-begin" endterm="sql-begin-title"> to start one.
All currently available prepared transactions are listed in the
- pg_prepared_xacts> system view.
+ pg_prepared_xacts
+ system view.