agora inbox for pgsql-docs@postgresql.org
help / color / mirror / Atom feedFrom: Laurenz Albe <laurenz.albe@cybertec.at>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: michael@schoenitzer.de
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: log_line_prefix and JSON log format
Date: Sat, 26 Sep 2026 00:13:10 +0200
Message-ID: <d21988802bb3f6ca7dc7951175b79dde248e434e.camel@cybertec.at> (raw)
In-Reply-To: <1885250.1790350583@sss.pgh.pa.us>
References: <179032875673.1026201.6950455317699774504@wrigleys.postgresql.org>
<42af2f4ed8afe739f2e8f8add80100b2ba2d7808.camel@cybertec.at>
<1885250.1790350583@sss.pgh.pa.us>
On Fri, 2026-09-25 at 11:36 -0400, Tom Lane wrote:
> 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".
No objection to your wording.
Yours,
Laurenz Albe
view thread (7+ messages) latest in thread
Message-ID: <d21988802bb3f6ca7dc7951175b79dde248e434e.camel@cybertec.at>
Permalink: ../d21988802bb3f6ca7dc7951175b79dde248e434e.camel@cybertec.at/
Also on: postgresql.org/message-id/d21988802bb3f6ca7dc7951175b79dde248e434e.camel@cybertec.at
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: laurenz.albe@cybertec.at, tgl@sss.pgh.pa.us, michael@schoenitzer.de, pgsql-docs@lists.postgresql.org
Subject: Re: log_line_prefix and JSON log format
In-Reply-To: <d21988802bb3f6ca7dc7951175b79dde248e434e.camel@cybertec.at>
* 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