From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add backend type to csvlog and optionally log_line_prefix
Date: Sun, 15 Mar 2020 10:23:15 +0000
Message-ID: <E1jDQQN-00066o-0w@gemulon.postgresql.org> (raw)
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@gmail.com>
Reviewed-by: Kuntal Ghosh <kuntalghosh.2007@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Justin Pryzby <pryzby@telsasoft.com>
Discussion: https://www.postgresql.org/message-id/flat/c65e5196-4f04-4ead-9353-6088c19615a3@2ndquadrant.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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org
Subject: Re: pgsql: Add backend type to csvlog and optionally log_line_prefix
In-Reply-To: <E1jDQQN-00066o-0w@gemulon.postgresql.org>
References: <E1jDQQN-00066o-0w@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox