From edd5211d39846549de43417bed3a7c01670fb9ef Mon Sep 17 00:00:00 2001 From: Julien Rouhaud Date: Sat, 14 May 2022 00:02:36 +0800 Subject: [PATCH] Remove _PG_fini(). Postgres hasn't called this function for more than a decade (even before extensions were introduced), and version 15 officially removes it so let's get rid of it too. --- hypopg.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/hypopg.c b/hypopg.c index cc81102..d419857 100644 --- a/hypopg.c +++ b/hypopg.c @@ -55,7 +55,6 @@ static bool oid_wraparound = false; /*--- Functions --- */ PGDLLEXPORT void _PG_init(void); -PGDLLEXPORT void _PG_fini(void); PGDLLEXPORT Datum hypopg_reset(PG_FUNCTION_ARGS); @@ -160,17 +159,6 @@ _PG_init(void) EmitWarningsOnPlaceholders("hypopg"); } -void -_PG_fini(void) -{ - /* uninstall hooks */ - ProcessUtility_hook = prev_utility_hook; - ExecutorEnd_hook = prev_ExecutorEnd_hook; - get_relation_info_hook = prev_get_relation_info_hook; - explain_get_index_name_hook = prev_explain_get_index_name_hook; - -} - /*--------------------------------- * Return a new OID for an hypothetical index. *