backend type in log_line_prefix?

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: backend type in log_line_prefix?
Date: 2020-02-13 08:56:38
Message-ID: c65e5196-4f04-4ead-9353-6088c19615a3@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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?

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment Content-Type Size
0001-Add-backend-type-placeholder-to-log_line_prefix.patch text/plain 7.9 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2020-02-13 09:02:31 Re: client-side fsync() error handling
Previous Message Amit Kapila 2020-02-13 08:45:13 Re: ERROR: subtransaction logged without previous top-level txn record