@@ -4376,6 +4376,7 @@ int SPI_freeplan(SPIPlanPtr <parameter>plan</parameter>)
4376
4376
4377
4377
<refentry id="spi-spi-commit">
4378
4378
<indexterm><primary>SPI_commit</primary></indexterm>
4379
+ <indexterm><primary>SPI_commit_and_chain</primary></indexterm>
4379
4380
4380
4381
<refmeta>
4381
4382
<refentrytitle>SPI_commit</refentrytitle>
@@ -4384,12 +4385,17 @@ int SPI_freeplan(SPIPlanPtr <parameter>plan</parameter>)
4384
4385
4385
4386
<refnamediv>
4386
4387
<refname>SPI_commit</refname>
4388
+ <refname>SPI_commit_and_chain</refname>
4387
4389
<refpurpose>commit the current transaction</refpurpose>
4388
4390
</refnamediv>
4389
4391
4390
4392
<refsynopsisdiv>
4391
4393
<synopsis>
4392
4394
void SPI_commit(void)
4395
+ </synopsis>
4396
+
4397
+ <synopsis>
4398
+ void SPI_commit_and_chain(void)
4393
4399
</synopsis>
4394
4400
</refsynopsisdiv>
4395
4401
@@ -4406,7 +4412,14 @@ void SPI_commit(void)
4406
4412
</para>
4407
4413
4408
4414
<para>
4409
- This function can only be executed if the SPI connection has been set as
4415
+ <function>SPI_commit_and_chain</function> is the same, but a new
4416
+ transaction is immediately started with the same transaction
4417
+ characteristics as the just finished one, like with the SQL command
4418
+ <command>COMMIT AND CHAIN</command>.
4419
+ </para>
4420
+
4421
+ <para>
4422
+ These functions can only be executed if the SPI connection has been set as
4410
4423
nonatomic in the call to <function>SPI_connect_ext</function>.
4411
4424
</para>
4412
4425
</refsect1>
@@ -4416,6 +4429,7 @@ void SPI_commit(void)
4416
4429
4417
4430
<refentry id="spi-spi-rollback">
4418
4431
<indexterm><primary>SPI_rollback</primary></indexterm>
4432
+ <indexterm><primary>SPI_rollback_and_chain</primary></indexterm>
4419
4433
4420
4434
<refmeta>
4421
4435
<refentrytitle>SPI_rollback</refentrytitle>
@@ -4424,12 +4438,17 @@ void SPI_commit(void)
4424
4438
4425
4439
<refnamediv>
4426
4440
<refname>SPI_rollback</refname>
4441
+ <refname>SPI_rollback_and_chain</refname>
4427
4442
<refpurpose>abort the current transaction</refpurpose>
4428
4443
</refnamediv>
4429
4444
4430
4445
<refsynopsisdiv>
4431
4446
<synopsis>
4432
4447
void SPI_rollback(void)
4448
+ </synopsis>
4449
+
4450
+ <synopsis>
4451
+ void SPI_rollback_and_chain(void)
4433
4452
</synopsis>
4434
4453
</refsynopsisdiv>
4435
4454
@@ -4444,9 +4463,15 @@ void SPI_rollback(void)
4444
4463
using <function>SPI_start_transaction</function> before further database
4445
4464
actions can be executed.
4446
4465
</para>
4466
+ <para>
4467
+ <function>SPI_rollback_and_chain</function> is the same, but a new
4468
+ transaction is immediately started with the same transaction
4469
+ characteristics as the just finished one, like with the SQL command
4470
+ <command>ROLLBACK AND CHAIN</command>.
4471
+ </para>
4447
4472
4448
4473
<para>
4449
- This function can only be executed if the SPI connection has been set as
4474
+ These functions can only be executed if the SPI connection has been set as
4450
4475
nonatomic in the call to <function>SPI_connect_ext</function>.
4451
4476
</para>
4452
4477
</refsect1>
0 commit comments