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 /src/test/modules/delay_execution/delay_execution.c | |
parent | 78ccd6cca48dab098fcce62528c2b471f7a0010a (diff) |
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 'src/test/modules/delay_execution/delay_execution.c')
-rw-r--r-- | src/test/modules/delay_execution/delay_execution.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/test/modules/delay_execution/delay_execution.c b/src/test/modules/delay_execution/delay_execution.c index cf34e8c2d7d..407ebc0edaf 100644 --- a/src/test/modules/delay_execution/delay_execution.c +++ b/src/test/modules/delay_execution/delay_execution.c @@ -36,9 +36,8 @@ static int post_planning_lock_id = 0; /* Save previous planner hook user to be a good citizen */ static planner_hook_type prev_planner_hook = NULL; -/* Module load/unload functions */ +/* Module load function */ void _PG_init(void); -void _PG_fini(void); /* planner_hook function to provide the desired delay */ @@ -97,10 +96,3 @@ _PG_init(void) prev_planner_hook = planner_hook; planner_hook = delay_execution_planner; } - -/* Module unload function (pro forma, not used currently) */ -void -_PG_fini(void) -{ - planner_hook = prev_planner_hook; -} |