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.
This commit is contained in:
Julien Rouhaud 2022-05-14 00:02:36 +08:00
parent 8005133cd4
commit edd5211d39

View file

@ -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.
*