pgsql: Modularize log_connections output

Поиск
Список
Период
Сортировка
От Melanie Plageman
Тема pgsql: Modularize log_connections output
Дата
Msg-id E1tsO99-00277d-1W@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Modularize log_connections output
Список 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 по дате отправления: