Remove _PG_fini Mikhail Litsarev
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 4 Apr 2024 11:58:48 +0000 (14:58 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 4 Apr 2024 11:59:02 +0000 (14:59 +0300)
online_analyze.c

index 150a126..0021fc3 100644 (file)
@@ -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