pgsql: Add backend type to csvlog and optionally log_line_prefix

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add backend type to csvlog and optionally log_line_prefix
Date: 2020-03-15 10:23:15
Message-ID: E1jDQQN-00066o-0w@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add backend type to csvlog and optionally log_line_prefix

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.

Reviewed-by: Julien Rouhaud <rjuju123(at)gmail(dot)com>
Reviewed-by: Kuntal Ghosh <kuntalghosh(dot)2007(at)gmail(dot)com>
Reviewed-by: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Reviewed-by: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/c65e5196-4f04-4ead-9353-6088c19615a3(at)2ndquadrant(dot)com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/70a7b4776be4e776221e578d8ca53b2b9f8118c0

Modified Files
--------------
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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2020-03-16 03:54:45 pgsql: nbtree: Reorder nbtinsert.c prototypes.
Previous Message Tomas Vondra 2020-03-14 22:10:24 pgsql: Improve test coverage for multi-column MCV lists