mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
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 commits74594849989f92cd8ce3a
This commit is contained in:
@@ -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) ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user