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 @@ -422,6 +422,16 @@ SPI_rollback_and_chain(void)
422
422
_SPI_rollback (true);
423
423
}
424
424
425
+ /*
426
+ * SPICleanup is a no-op, kept for backwards compatibility. We rely on
427
+ * AtEOXact_SPI to cleanup. Extensions should not (need to) fiddle with the
428
+ * internal SPI state directly.
429
+ */
430
+ void
431
+ SPICleanup (void )
432
+ {
433
+ }
434
+
425
435
/*
426
436
* Clean up SPI state at transaction commit or abort.
427
437
*/
Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ extern void SPI_commit_and_chain(void);
205
205
extern void SPI_rollback (void );
206
206
extern void SPI_rollback_and_chain (void );
207
207
208
+ extern void SPICleanup (void );
208
209
extern void AtEOXact_SPI (bool isCommit );
209
210
extern void AtEOSubXact_SPI (bool isCommit , SubTransactionId mySubid );
210
211
extern bool SPI_inside_nonatomic_context (void );
You can’t perform that action at this time.
0 commit comments