1SPI_COMMIT(3)            PostgreSQL 14.3 Documentation           SPI_COMMIT(3)
2
3
4

NAME

6       SPI_commit, SPI_commit_and_chain - commit the current transaction
7

SYNOPSIS

9       void SPI_commit(void)
10
11       void SPI_commit_and_chain(void)
12

DESCRIPTION

14       SPI_commit commits the current transaction. It is approximately
15       equivalent to running the SQL command COMMIT. After a transaction is
16       committed, a new transaction has to be started using
17       SPI_start_transaction before further database actions can be executed.
18
19       SPI_commit_and_chain is the same, but a new transaction is immediately
20       started with the same transaction characteristics as the just finished
21       one, like with the SQL command COMMIT AND CHAIN.
22
23       These functions can only be executed if the SPI connection has been set
24       as nonatomic in the call to SPI_connect_ext.
25
26
27
28PostgreSQL 14.3                      2022                        SPI_COMMIT(3)
Impressum