diff options
author | Robert Haas <rhaas@postgresql.org> | 2022-05-11 15:27:33 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2022-05-11 15:30:30 -0400 |
commit | ab02d702ef08343fba30d90fdf7df5950063e8c9 (patch) | |
tree | 598702d234a64298236fc7ab028b256c18b766fa /contrib/auto_explain/auto_explain.c | |
parent | 78ccd6cca48dab098fcce62528c2b471f7a0010a (diff) | |
download | postgresql-ab02d702ef08343fba30d90fdf7df5950063e8c9.tar.gz postgresql-ab02d702ef08343fba30d90fdf7df5950063e8c9.zip |
Remove non-functional code for unloading loadable modules.
The code for unloading a library has been commented-out for over 12
years, ever since commit 602a9ef5a7c60151e10293ae3c4bb3fbb0132d03, and we're
no closer to supporting it now than we were back then.
Nathan Bossart, reviewed by Michael Paquier and by me.
Discussion: http://postgr.es/m/Ynsc9bRL1caUSBSE@paquier.xyz
Diffstat (limited to 'contrib/auto_explain/auto_explain.c')
-rw-r--r-- | contrib/auto_explain/auto_explain.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/contrib/auto_explain/auto_explain.c b/contrib/auto_explain/auto_explain.c index d3029f85efe..c9a0d947c83 100644 --- a/contrib/auto_explain/auto_explain.c +++ b/contrib/auto_explain/auto_explain.c @@ -77,7 +77,6 @@ static ExecutorFinish_hook_type prev_ExecutorFinish = NULL; static ExecutorEnd_hook_type prev_ExecutorEnd = NULL; void _PG_init(void); -void _PG_fini(void); static void explain_ExecutorStart(QueryDesc *queryDesc, int eflags); static void explain_ExecutorRun(QueryDesc *queryDesc, @@ -245,19 +244,6 @@ _PG_init(void) } /* - * Module unload callback - */ -void -_PG_fini(void) -{ - /* Uninstall hooks. */ - ExecutorStart_hook = prev_ExecutorStart; - ExecutorRun_hook = prev_ExecutorRun; - ExecutorFinish_hook = prev_ExecutorFinish; - ExecutorEnd_hook = prev_ExecutorEnd; -} - -/* * ExecutorStart hook: start up logging if needed */ static void |