pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Rouhaud <rjuju123@gmail.com>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: backend type in log_line_prefix?
Date: Thu, 13 Feb 2020 10:14:28 +0100
Message-ID: <20200213091428.GA15600@nol> (raw)
In-Reply-To: <c65e5196-4f04-4ead-9353-6088c19615a3@2ndquadrant.com>
References: <c65e5196-4f04-4ead-9353-6088c19615a3@2ndquadrant.com>

On Thu, Feb 13, 2020 at 09:56:38AM +0100, Peter Eisentraut wrote:
> Attached is a demo patch that adds a placeholder %b for log_line_prefix (not
> in the default setting) that contains the backend type, the same that you
> see in pg_stat_activity and in the ps status.  I would have found this
> occasionally useful when analyzing logs, especially if you have a lot of
> background workers active.  Thoughts?

+1, I'd also have been happy to have it multiple times.





view thread (26+ messages)  latest in thread

Message-ID: <20200213091428.GA15600@nol>
Permalink:  ../20200213091428.GA15600@nol/
Also on:    postgresql.org/message-id/20200213091428.GA15600@nol

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: rjuju123@gmail.com, peter.eisentraut@2ndquadrant.com
  Subject: Re: backend type in log_line_prefix?
  In-Reply-To: <20200213091428.GA15600@nol>

* 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