From: Teodor Sigaev Date: Thu, 4 Apr 2024 11:58:48 +0000 (+0300) Subject: Remove _PG_fini Mikhail Litsarev X-Git-Url: http://sigaev.ru/git/gitweb.cgi?p=online_analyze.git;a=commitdiff_plain;h=HEAD Remove _PG_fini Mikhail Litsarev --- diff --git a/online_analyze.c b/online_analyze.c index 150a126..0021fc3 100644 --- a/online_analyze.c +++ b/online_analyze.c @@ -1396,23 +1396,3 @@ _PG_init(void) RegisterXactCallback(removeTable, NULL); } - -#if PG_VERSION_NUM < 150000 -void _PG_fini(void); -void -_PG_fini(void) -{ - ExecutorEnd_hook = oldExecutorEndHook; -#if PG_VERSION_NUM >= 90200 - ProcessUtility_hook = oldProcessUtilityHook; -#endif - - if (excludeTables.tables) - free(excludeTables.tables); - if (includeTables.tables) - free(includeTables.tables); - - excludeTables.tables = includeTables.tables = NULL; - excludeTables.nTables = includeTables.nTables = 0; -} -#endif