Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
self
/
root
/
opt
/
postgresql-11
/
share
/
man
/
man3
/
//proc/self/root/opt/postgresql-11/share/man/man3/SPI_start_transaction.3
'\" t .\" Title: SPI_start_transaction .\" Author: The PostgreSQL Global Development Group .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> .\" Date: 2018 .\" Manual: PostgreSQL 11.1 Documentation .\" Source: PostgreSQL 11.1 .\" Language: English .\" .TH "SPI_START_TRANSACTION" "3" "2018" "PostgreSQL 11.1" "PostgreSQL 11.1 Documentation" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" SPI_start_transaction \- start a new transaction .SH "SYNOPSIS" .sp .nf void SPI_start_transaction(void) .fi .SH "DESCRIPTION" .PP \fBSPI_start_transaction\fR starts a new transaction\&. It can only be called after \fBSPI_commit\fR or \fBSPI_rollback\fR, as there is no transaction active at that point\&. Normally, when an SPI\-using procedure is called, there is already a transaction active, so attempting to start another one before closing out the current one will result in an error\&. .PP This function can only be executed if the SPI connection has been set as nonatomic in the call to \fBSPI_connect_ext\fR\&.