4 START TRANSACTION — start a transaction block
8 START TRANSACTION [ transaction_mode [, ...] ]
10 where transaction_mode is one of:
12 ISOLATION LEVEL { SERIALIZABLE | REPEATABLE READ | READ COMMITTED | READ UNC
14 READ WRITE | READ ONLY
19 This command begins a new transaction block. If the isolation level,
20 read/write mode, or deferrable mode is specified, the new transaction
21 has those characteristics, as if SET TRANSACTION was executed. This is
22 the same as the BEGIN command.
26 Refer to SET TRANSACTION for information on the meaning of the
27 parameters to this statement.
31 In the standard, it is not necessary to issue START TRANSACTION to
32 start a transaction block: any SQL command implicitly begins a block.
33 PostgreSQL's behavior can be seen as implicitly issuing a COMMIT after
34 each command that does not follow START TRANSACTION (or BEGIN), and it
35 is therefore often called “autocommit”. Other relational database
36 systems might offer an autocommit feature as a convenience.
38 The DEFERRABLE transaction_mode is a PostgreSQL language extension.
40 The SQL standard requires commas between successive transaction_modes,
41 but for historical reasons PostgreSQL allows the commas to be omitted.
43 See also the compatibility section of SET TRANSACTION.
47 BEGIN, COMMIT, ROLLBACK, SAVEPOINT, SET TRANSACTION