File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 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 @@ -164,6 +164,7 @@ extern void SPI_commit_and_chain(void);
164
164
extern void SPI_rollback (void );
165
165
extern void SPI_rollback_and_chain (void );
166
166
167
+ extern void SPICleanup (void );
167
168
extern void AtEOXact_SPI (bool isCommit );
168
169
extern void AtEOSubXact_SPI (bool isCommit , SubTransactionId mySubid );
169
170
extern bool SPI_inside_nonatomic_context (void );
You can’t perform that action at this time.
0 commit comments