START_TRANSACTION(7pg15)
Okay so bestie, welcome to the START_TRANSACTION page (aka START TRANSACTION(7)) from the PostgreSQL 15.19 docs, manual page 7pg15 β yes, the one all about starting a transaction block. Itβs giving main character energy, and weβre covering every single detail. π
π NAME π
START_TRANSACTION β start a transaction block
β¨ SYNOPSIS β¨
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. If the isolation level, read/write mode, or deferrable mode is specified, the new transaction has those characteristics, as if SET TRANSACTION was executed. Lowkey iconic. This is the same as the BEGIN command. Periodt. β¨
πΈ PARAMETERS πΈ
Refer to SET TRANSACTION (SET_TRANSACTION(7)) for information on the meaning of the parameters to this statement. Thatβs the whole vibe check for this section, bestie. π«Ά
π¦ COMPATIBILITY π¦
- In the standard, it is not necessary to issue
START TRANSACTIONto start a transaction block: any SQL command implicitly begins a block. PostgreSQLβs behavior can be seen as implicitly issuing aCOMMITafter 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. Noted, bestie. - The SQL standard requires commas between successive transaction_modes, but for historical reasons PostgreSQL allows the commas to be omitted. History said βno commas needed,β and honestly? Slay.
- See also the compatibility section of
SET TRANSACTION(SET_TRANSACTION(7)). π
π₯ SEE ALSO π₯
BEGIN(7)COMMIT(7)ROLLBACK(7)SAVEPOINT(7)SET TRANSACTION(SET_TRANSACTION(7))
π Thatβs the whole page, bestie! Source/version: PostgreSQL 15.19; date: 2026. Bye and mwah! π«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-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