mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
This patch brings up to date what I did last year (now unfortunately
bitrotted) to allow the logging of the end of a session, enabled by the config setting "log_disconnections". Andrew Dunstan
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.186 2004/02/06 19:36:18 wieck Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.187 2004/02/17 03:54:57 momjian Exp $
|
||||
*
|
||||
*--------------------------------------------------------------------
|
||||
*/
|
||||
@ -65,6 +65,7 @@
|
||||
|
||||
/* XXX these should appear in other modules' header files */
|
||||
extern bool Log_connections;
|
||||
extern bool Log_disconnections;
|
||||
extern bool check_function_bodies;
|
||||
extern int PreAuthDelay;
|
||||
extern int AuthenticationTimeout;
|
||||
@ -499,6 +500,14 @@ static struct config_bool ConfigureNamesBool[] =
|
||||
&Log_connections,
|
||||
false, NULL, NULL
|
||||
},
|
||||
{
|
||||
{"log_disconnections", PGC_BACKEND, LOGGING_WHAT,
|
||||
gettext_noop("Logs end of a session, including duration"),
|
||||
NULL
|
||||
},
|
||||
&Log_disconnections,
|
||||
false, NULL, NULL
|
||||
},
|
||||
{
|
||||
{"log_timestamp", PGC_SIGHUP, LOGGING_WHAT,
|
||||
gettext_noop("Prefixes server log messages with a time stamp."),
|
||||
|
Reference in New Issue
Block a user