Skip to content

Commit

Permalink
Merge pull request #35 from dalibo/remove_pg_fini
Browse files Browse the repository at this point in the history
Remove _PG_fini().
  • Loading branch information
yhuelf committed Jul 28, 2023
2 parents a0e859b + 8166133 commit 34df493
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions pg_query_settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ PG_MODULE_MAGIC;
/* Function definitions */

void _PG_init(void);
void _PG_fini(void);

/* Variables */

Expand Down Expand Up @@ -392,24 +391,3 @@ _PG_init(void)

if (debug) elog(DEBUG1,"Exiting _PG_init()");
}

/*
* Reset hooks
*/
void
_PG_fini(void)
{

if (debug) elog(DEBUG1,"Entering _PG_fini()");

planner_hook = prevHook;
ExecutorEnd_hook = prev_ExecutorEnd;

#if PG_VERSION_NUM < 130000
if (debug) elog(DEBUG1,"Recovering post_parse_analyze_hook");
post_parse_analyze_hook = prev_post_parse_analyze_hook;
#endif

if (debug) elog(DEBUG1,"Exiting _PG_fini()");

}

0 comments on commit 34df493

Please sign in to comment.