1COMMIT PREPARED(7) SQL Commands COMMIT PREPARED(7)
2
3
4
6 COMMIT PREPARED - commit a transaction that was earlier prepared for
7 two-phase commit
8
9
11 COMMIT PREPARED transaction_id
12
13
15 COMMIT PREPARED commits a transaction that is in prepared state.
16
18 transaction_id
19 The transaction identifier of the transaction that is to be com‐
20 mitted.
21
23 To commit a prepared transaction, you must be either the same user that
24 executed the transaction originally, or a superuser. But you do not
25 have to be in the same session that executed the transaction.
26
27 This command cannot be executed inside a transaction block. The pre‐
28 pared transaction is committed immediately.
29
30 All currently available prepared transactions are listed in the pg_pre‐
31 pared_xacts system view.
32
34 Commit the transaction identified by the transaction identifier foobar:
35
36 COMMIT PREPARED 'foobar';
37
38
40 PREPARE TRANSACTION [prepare_transaction(7)], ROLLBACK PREPARED [roll‐
41 back_prepared(7)]
42
43
44
45SQL - Language Statements 2014-02-17 COMMIT PREPARED(7)