Modularize log_connections output
Melanie Plageman <melanieplageman@gmail.com>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/config.sgml | modified | +77 −5 |
| src/backend/libpq/auth.c | modified | +6 −3 |
| src/backend/postmaster/postmaster.c | modified | +0 −1 |
| src/backend/tcop/backend_startup.c | modified | +159 −2 |
| src/backend/utils/init/postinit.c | modified | +2 −1 |
| src/backend/utils/misc/guc_tables.c | modified | +12 −9 |
| src/backend/utils/misc/postgresql.conf.sample | modified | +5 −3 |
| src/include/postmaster/postmaster.h | modified | +0 −1 |
| src/include/tcop/backend_startup.h | modified | +29 −0 |
| src/include/utils/guc_hooks.h | modified | +2 −0 |
| src/test/authentication/t/001_password.pl | modified | +38 −0 |
| src/tools/pgindent/typedefs.list | modified | +1 −0 |
Documentation touched
Discussion
Cited messages not in the archive:
flat/CAAKRu_b_smAHK0ZjrnL5GRxnAVWujEXQWpLXYzGbmpcZd3nLYw@mail.gmail.com