解决存在exception时匿名事务占用内存不断上升的问题 & 2个memcheck 内存泄漏

This commit is contained in:
laishenghao
2023-06-12 11:46:13 +08:00
parent 26b03ef762
commit e3d4a7464e
5 changed files with 41 additions and 18 deletions

View File

@ -95,6 +95,7 @@ extern void SPI_pop(void);
extern bool SPI_push_conditional(void);
extern void SPI_pop_conditional(bool pushed);
extern void SPI_restore_connection(void);
extern void SPI_restore_connection_on_exception(void);
extern int SPI_execute(const char* src, bool read_only, long tcount, bool isCollectParam = false, parse_query_func parser = GetRawParser());
extern int SPI_execute_plan(SPIPlanPtr plan, Datum* Values, const char* Nulls, bool read_only, long tcount);
extern int SPI_execute_plan_with_paramlist(SPIPlanPtr plan, ParamListInfo params, bool read_only, long tcount);