1SPI_ROLLBACK(3)          PostgreSQL 15.4 Documentation         SPI_ROLLBACK(3)
2
3
4

NAME

6       SPI_rollback, SPI_rollback_and_chain - abort the current transaction
7

SYNOPSIS

9       void SPI_rollback(void)
10
11       void SPI_rollback_and_chain(void)
12

DESCRIPTION

14       SPI_rollback rolls back the current transaction. It is approximately
15       equivalent to running the SQL command ROLLBACK. After the transaction
16       is rolled back, a new transaction is automatically started using
17       default transaction characteristics, so that the caller can continue
18       using SPI facilities.
19
20       SPI_rollback_and_chain is the same, but the new transaction is started
21       with the same transaction characteristics as the just finished one,
22       like with the SQL command ROLLBACK AND CHAIN.
23
24       These functions can only be executed if the SPI connection has been set
25       as nonatomic in the call to SPI_connect_ext.
26
27
28
29PostgreSQL 15.4                      2023                      SPI_ROLLBACK(3)
Impressum