START_TRANSACTION(7pg17)
β¨ NAME β¨
START_TRANSACTION β start a transaction block. That's the whole vibe: you're opening a transaction block, bestie. π
okay so welcome to the START_TRANSACTION(7pg17) page from the PostgreSQL 17.11 documentation β yes, the manual name is right there, no cap. Let's get into it. β¨
πΈ SYNOPSIS πΈ
Here's the shape of it, exactly:
START TRANSACTION [ transaction_mode [, ...] ]
where transaction_mode is one of:
ISOLATION LEVEL { SERIALIZABLE | REPEATABLE READ | READ COMMITTED | READ UNCOMMITTED }
READ WRITE | READ ONLY
[ NOT ] DEFERRABLE
π DESCRIPTION π
This command begins a new transaction block. Periodt. π«Ά
If the isolation level, read/write mode, or deferrable mode is specified, the new transaction has those characteristics β literally as if SET TRANSACTION was executed. And this? This is the same as the BEGIN command. No cap. β¨
π PARAMETERS π
Bestie, I'm not gonna pretend the parameter meanings live here. They don't. Refer to SET TRANSACTION (SET_TRANSACTION(7)) for information on the meaning of the parameters to this statement. Go get the lore from that page. π
π¦ COMPATIBILITY π¦
- In the standard, it is not necessary to issue
START TRANSACTIONto start a transaction block: any SQL command implicitly begins a block. Wild, right? π - PostgreSQL's behavior can be seen as implicitly issuing a
COMMITafter each command that does not followSTART TRANSACTION(orBEGIN), and it is therefore often called βautocommitβ. Other relational database systems might offer an autocommit feature as a convenience. - The
DEFERRABLEtransaction_mode is a PostgreSQL language extension. iykyk. - The SQL standard requires commas between successive transaction_modes, but for historical reasons PostgreSQL allows the commas to be omitted. History said "commas optional, bestie" π.
- See also the compatibility section of
SET TRANSACTION(SET_TRANSACTION(7)). It's giving required reading. π
π SEE ALSO π
BEGIN(7)COMMIT(7)ROLLBACK(7)SAVEPOINT(7)SET TRANSACTION(SET_TRANSACTION(7))
That's the whole page, babe. π«Ά This little manual moment came from PostgreSQL 17.11, dated 2026, and the page is START_TRANSACTION(7). Slay responsibly. π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms