pgsql: Modularize log_connections output - Mailing list pgsql-committers

From Melanie Plageman
Subject pgsql: Modularize log_connections output
Date
Msg-id E1tsO99-00277d-1W@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Modularize log_connections output
List pgsql-committers
Modularize log_connections output

Convert the boolean log_connections GUC into a list GUC comprised of the
connection aspects to log.

This gives users more control over the volume and kind of connection
logging.

The current log_connections options are 'receipt', 'authentication', and
'authorization'. The empty string disables all connection logging. 'all'
enables all available connection logging.

For backwards compatibility, the most common values for the
log_connections boolean are still supported (on, off, 1, 0, true, false,
yes, no). Note that previously supported substrings of on, off, true,
false, yes, and no are no longer supported.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/flat/CAAKRu_b_smAHK0ZjrnL5GRxnAVWujEXQWpLXYzGbmpcZd3nLYw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9219093cab2607f34ac70612a65430a9c519157f

Modified Files
--------------
doc/src/sgml/config.sgml                      |  82 ++++++++++++-
src/backend/libpq/auth.c                      |   9 +-
src/backend/postmaster/postmaster.c           |   1 -
src/backend/tcop/backend_startup.c            | 161 +++++++++++++++++++++++++-
src/backend/utils/init/postinit.c             |   3 +-
src/backend/utils/misc/guc_tables.c           |  21 ++--
src/backend/utils/misc/postgresql.conf.sample |   8 +-
src/include/postmaster/postmaster.h           |   1 -
src/include/tcop/backend_startup.h            |  29 +++++
src/include/utils/guc_hooks.h                 |   2 +
src/test/authentication/t/001_password.pl     |  38 ++++++
src/tools/pgindent/typedefs.list              |   1 +
12 files changed, 331 insertions(+), 25 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Remove initialization from PendingBackendStats
Next
From: Tom Lane
Date:
Subject: pgsql: Build whole-row Vars the same way during parsing and planning.