diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2022-07-18 16:23:48 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2022-07-18 16:23:48 +0200 |
commit | 8657946d375f4831b026d7c28016b27acdd2c246 (patch) | |
tree | e8a8b7158bf7ac3b44a228fd259446ea38876052 /src/backend/executor | |
parent | 9293589d96756f921f54793c4586c6bd61f94e4f (diff) | |
download | postgresql-8657946d375f4831b026d7c28016b27acdd2c246.tar.gz postgresql-8657946d375f4831b026d7c28016b27acdd2c246.zip |
Re-add SPICleanup for ABI compatibility in stable branch
This fixes an ABI break introduced by
604651880c71c5106a72529b9ce29eaad0cfab27.
Author: Markus Wanner <markus.wanner@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/defd749a-8410-841d-1126-21398686d63d@enterprisedb.com
Diffstat (limited to 'src/backend/executor')
-rw-r--r-- | src/backend/executor/spi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/backend/executor/spi.c b/src/backend/executor/spi.c index dd5ef762707..f73c1e79e18 100644 --- a/src/backend/executor/spi.c +++ b/src/backend/executor/spi.c @@ -423,6 +423,16 @@ SPI_rollback_and_chain(void) } /* + * SPICleanup is a no-op, kept for backwards compatibility. We rely on + * AtEOXact_SPI to cleanup. Extensions should not (need to) fiddle with the + * internal SPI state directly. + */ +void +SPICleanup(void) +{ +} + +/* * Clean up SPI state at transaction commit or abort. */ void |