File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -416,6 +416,16 @@ SPI_rollback_and_chain(void)
416
416
_SPI_rollback (true);
417
417
}
418
418
419
+ /*
420
+ * SPICleanup is a no-op, kept for backwards compatibility. We rely on
421
+ * AtEOXact_SPI to cleanup. Extensions should not (need to) fiddle with the
422
+ * internal SPI state directly.
423
+ */
424
+ void
425
+ SPICleanup (void )
426
+ {
427
+ }
428
+
419
429
/*
420
430
* Clean up SPI state at transaction commit or abort.
421
431
*/
Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ extern void SPI_commit_and_chain(void);
167
167
extern void SPI_rollback (void );
168
168
extern void SPI_rollback_and_chain (void );
169
169
170
+ extern void SPICleanup (void );
170
171
extern void AtEOXact_SPI (bool isCommit );
171
172
extern void AtEOSubXact_SPI (bool isCommit , SubTransactionId mySubid );
172
173
extern bool SPI_inside_nonatomic_context (void );
You can’t perform that action at this time.
0 commit comments