mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +03:00
Revert hooks for session start and end, take two
The location of the session end hook has been chosen so as it is possible to allow modules to do their own transactions, however any trying to any any subsystem which went through before_shmem_exit() would cause issues, limiting the pluggability of the hook. Per discussion with Tom Lane and Andres Freund. Discussion: https://postgr.es/m/18722.1569906636@sss.pgh.pa.us
This commit is contained in:
@@ -30,13 +30,6 @@ extern PGDLLIMPORT const char *debug_query_string;
|
||||
extern int max_stack_depth;
|
||||
extern int PostAuthDelay;
|
||||
|
||||
/* Hook for plugins to get control at start and end of session */
|
||||
typedef void (*session_start_hook_type) (void);
|
||||
typedef void (*session_end_hook_type) (void);
|
||||
|
||||
extern PGDLLIMPORT session_start_hook_type session_start_hook;
|
||||
extern PGDLLIMPORT session_end_hook_type session_end_hook;
|
||||
|
||||
/* GUC-configurable parameters */
|
||||
|
||||
typedef enum
|
||||
|
Reference in New Issue
Block a user