Add backend type to csvlog and optionally log_line_prefix

Enterprise / PostgreSQL - Peter Eisentraut [eisentraut.org] - 15 March 2020 10:20 UTC

The backend type, which corresponds to what pg_stat_activity.backend_type shows, is added as a column to the csvlog and can optionally be added to log_line_prefix using the new %b placeholder.

70a7b4776b Add backend type to csvlog and optionally log_line_prefix
doc/src/sgml/config.sgml | 20 ++++++++++++++++++-
src/backend/utils/error/elog.c | 28 +++++++++++++++++++++++++++
src/backend/utils/misc/postgresql.conf.sample | 1 +
src/test/regress/pg_regress.c | 2 +-
4 files changed, 49 insertions(+), 2 deletions(-)

Upstream: git.postgresql.org


  • Share