SPI_ROLLBACK(3)
π SPI_ROLLBACK(3) π
okay bestie, this is the PostgreSQL 13.23 documentation manual page for SPI_ROLLBACK(3) β yes, the title is right there and we're moving on together π«Ά
β¨ NAME β¨
SPI_rollback, SPI_rollback_and_chain β abort the current transaction π
πΈ SYNOPSIS πΈ
void SPI_rollback(void)
void SPI_rollback_and_chain(void)
π¦ DESCRIPTION π¦
so SPI_rollback rolls back the current transaction, no cap. it's approximately equivalent to running the SQL command ROLLBACK π
after the transaction is rolled back, a new transaction is automatically started using default transaction characteristics, so the caller can continue using SPI facilities. iconic behavior, honestly β¨
SPI_rollback_and_chain is the same, but the new transaction is started with the same transaction characteristics as the just finished one β like with the SQL command ROLLBACK AND CHAIN. she's consistent π
important vibe check: these functions can only be executed if the SPI connection has been set as nonatomic in the call to SPI_connect_ext. that's the rule, bestie π₯
that's the whole page, bestie π β source/version: PostgreSQL 13.23, dated 2025. periodt π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13-docs 13.23-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