mirror of
https://github.com/postgres/postgres.git
synced 2025-10-19 15:49:24 +03:00
Add hooks for session start and session end
These hooks can be used in loadable modules. A simple test module is included. Discussion: https://postgr.es/m/20170720204733.40f2b7eb.nagata@sraoss.co.jp Fabrízio de Royes Mello and Yugo Nagata Reviewed by Michael Paquier and Aleksandr Parfenov
This commit is contained in:
@@ -35,6 +35,13 @@ 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