From 6bc6f34a5b03e53420772bf0e9cfc93c9d150b18 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Thu, 4 Apr 2024 14:58:48 +0300 Subject: [PATCH] Remove _PG_fini Mikhail Litsarev --- online_analyze.c | 20 -------------------- 1 file changed, 20 deletions(-) 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 -- 2.37.3