aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/init
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2017-11-16 11:35:02 -0500
committerAndrew Dunstan <andrew@dunslane.net>2017-11-16 11:35:02 -0500
commit98d54bb7790d5fb0a77173d5e5e3c655901b472c (patch)
tree6959ce8a9a5dbefdc269966a37b5c0b3d36dc904 /src/backend/utils/init
parent164d6338785b0b6c5a1ac30ee3e4b63bd77441ba (diff)
downloadpostgresql-98d54bb7790d5fb0a77173d5e5e3c655901b472c.tar.gz
postgresql-98d54bb7790d5fb0a77173d5e5e3c655901b472c.zip
Back out the session_start and session_end hooks feature.
It's become apparent during testing that there are problems with at least the testing regime. I don't think we should have it without a working test regime, and the difficulties might indicate implementation problems anyway, so I'm backing out the whole thing until that's sorted out. This reverts commits 7459484 9989f92 cd8ce3a
Diffstat (limited to 'src/backend/utils/init')
-rw-r--r--src/backend/utils/init/postinit.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c
index 16ec376b221..20f1d279e9c 100644
--- a/src/backend/utils/init/postinit.c
+++ b/src/backend/utils/init/postinit.c
@@ -76,8 +76,6 @@ static bool ThereIsAtLeastOneRole(void);
static void process_startup_options(Port *port, bool am_superuser);
static void process_settings(Oid databaseid, Oid roleid);
-/* Hook for plugins to get control at end of session */
-session_end_hook_type session_end_hook = NULL;
/*** InitPostgres support ***/
@@ -1156,10 +1154,6 @@ ShutdownPostgres(int code, Datum arg)
* them explicitly.
*/
LockReleaseAll(USER_LOCKMETHOD, true);
-
- /* Hook at session end */
- if (session_end_hook)
- (*session_end_hook) ();
}