Re-add SPICleanup for ABI compatibility in stable branch
This fixes an ABI break introduced by 2f6b8c287b881fd33168d8c15c56f71163ff3ba6. Author: Markus Wanner <markus.wanner@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/defd749a-8410-841d-1126-21398686d63d@enterprisedb.com
This commit is contained in:
parent
94bcb48ab5
commit
6d61aef5db
@ -381,6 +381,16 @@ SPI_rollback(void)
|
|||||||
PG_END_TRY();
|
PG_END_TRY();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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.
|
* Clean up SPI state at transaction commit or abort.
|
||||||
*/
|
*/
|
||||||
|
@ -163,6 +163,7 @@ extern void SPI_start_transaction(void);
|
|||||||
extern void SPI_commit(void);
|
extern void SPI_commit(void);
|
||||||
extern void SPI_rollback(void);
|
extern void SPI_rollback(void);
|
||||||
|
|
||||||
|
extern void SPICleanup(void);
|
||||||
extern void AtEOXact_SPI(bool isCommit);
|
extern void AtEOXact_SPI(bool isCommit);
|
||||||
extern void AtEOSubXact_SPI(bool isCommit, SubTransactionId mySubid);
|
extern void AtEOSubXact_SPI(bool isCommit, SubTransactionId mySubid);
|
||||||
extern bool SPI_inside_nonatomic_context(void);
|
extern bool SPI_inside_nonatomic_context(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user