Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xA7yP-00000002T2F-0Z0L for pgsql-docs@arkaria.postgresql.org; Fri, 25 Sep 2026 15:36:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xA7yO-00000001Pg0-0fqu for pgsql-docs@arkaria.postgresql.org; Fri, 25 Sep 2026 15:36:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xA7yN-00000001Pfs-3wxs for pgsql-docs@lists.postgresql.org; Fri, 25 Sep 2026 15:36:27 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xA7yL-00000001FqM-3GIJ for pgsql-docs@lists.postgresql.org; Fri, 25 Sep 2026 15:36:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 68PFaNpH1885251; Fri, 25 Sep 2026 11:36:23 -0400 From: Tom Lane To: Laurenz Albe cc: michael@schoenitzer.de, pgsql-docs@lists.postgresql.org Subject: Re: log_line_prefix and JSON log format In-reply-to: <42af2f4ed8afe739f2e8f8add80100b2ba2d7808.camel@cybertec.at> References: <179032875673.1026201.6950455317699774504@wrigleys.postgresql.org> <42af2f4ed8afe739f2e8f8add80100b2ba2d7808.camel@cybertec.at> Comments: In-reply-to Laurenz Albe message dated "Fri, 25 Sep 2026 17:10:50 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1885249.1790350583.1@sss.pgh.pa.us> Date: Fri, 25 Sep 2026 11:36:23 -0400 Message-ID: <1885250.1790350583@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe 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