agora inbox for pgsql-docs@postgresql.org  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: michael@schoenitzer.de
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: log_line_prefix and JSON log format
Date: Fri, 25 Sep 2026 11:36:23 -0400
Message-ID: <1885250.1790350583@sss.pgh.pa.us> (raw)
In-Reply-To: <42af2f4ed8afe739f2e8f8add80100b2ba2d7808.camel@cybertec.at>
References: <179032875673.1026201.6950455317699774504@wrigleys.postgresql.org>
	<42af2f4ed8afe739f2e8f8add80100b2ba2d7808.camel@cybertec.at>

Laurenz Albe <laurenz.albe@cybertec.at> writes:
> On Fri, 2026-09-25 at 09:32 +0000, PG Doc comments form wrote:
>> I noticed, that it not documented anywhere what log_line_prefix will do, if
>> log_destination = 'jsonlog' (Or CSV). From my tests it seems it is ignored
>> and does nothing. But we weren't sure and would be helpful to have this
>> documented.

> True; here is a patch.

This wording seems like it might add confusion rather than remove it,
because it's not allowing for the fact that log_destination can be
a list.  I'd be inclined to write something more along the lines of
"... string that is output at the beginning of each log line that is
sent to stderr, syslog, or eventlog".

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <1885250.1790350583@sss.pgh.pa.us>
Permalink:  ../1885250.1790350583@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1885250.1790350583@sss.pgh.pa.us

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-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, laurenz.albe@cybertec.at, michael@schoenitzer.de, pgsql-docs@lists.postgresql.org
  Subject: Re: log_line_prefix and JSON log format
  In-Reply-To: <1885250.1790350583@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox