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 1xAEAQ-00000002WSt-3ra2 for pgsql-docs@arkaria.postgresql.org; Fri, 25 Sep 2026 22:13:19 +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 1xAEAP-00000002snW-0WFm for pgsql-docs@arkaria.postgresql.org; Fri, 25 Sep 2026 22:13:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xAEAO-00000002snO-3XkB for pgsql-docs@lists.postgresql.org; Fri, 25 Sep 2026 22:13:16 +0000 Received: from mail-ej2-x0f.google.com ([2a00:1450:4864:34::f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1xAEAL-00000001GSv-3uqS for pgsql-docs@lists.postgresql.org; Fri, 25 Sep 2026 22:13:15 +0000 Received: by mail-ej2-x0f.google.com with SMTP id a640c23a62f3a-c2af43c5b0cso120059066b.1 for ; Fri, 25 Sep 2026 15:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1790374393; x=1790979193; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to:content-type; bh=8rDo7Y3zR1O74Iz6P7IIahdpAVZi5eQ099rLTxHpW6I=; b=heC/Cwuop3TglNTvLUdqmFJSSNMG9MlRGCX3ymkqOnBw9H7/E9H228i7mb5OBtirS5 +lgNsqZk0iIBm2vJ/h2WCVNYBwfsJnV1GQR/qcnZB6eK7Lt1TF5nWv/Sd81P16z1HjRV nsLkTJwo/DVfAtqV5jBBIbipX2tDB1/Hkh95E8K4rXlmqQ4I16K/NoPLlLhWM0VJ2sH9 XKqlIkGz8DC7/da1lnVDwABrAqAwCrNZEhOJlWOPBs3jEXRIkL9thR847Bp4ebjbbypj 0zMGv412rNwmvlw3WeL92tFoUcoAZ4167Ip262VAEou8uOFas9tSRmGuIKhXDvF9ExoI iFQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790374393; x=1790979193; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=8rDo7Y3zR1O74Iz6P7IIahdpAVZi5eQ099rLTxHpW6I=; b=Z7swOpi6uXgMg04Ryai2ZdFP+/fxDGdGw5owkdcVAF3+NeqOYBkga+r1Pdcdt+5dH4 gm2nuVjo8DZne+dmiApqExSatlHv+QCMezz50PuJUpu2LC2ZV6LlQcRNKGjy1lUo5FNm AWaVVqkRAbCU+A9Ome9hCCXQo6Ok0NWDk9skjQh61KyiMSmng3NSv3VTFF8AaAAxzIj7 YOlloO5JpVbigU/KFPiwlFwYMNWIHCdfCT2NSve9zcjv/6PoNf/B18ZqeXyPRI75v5lh P7G7gQzo2n+xyffC2jje9VWCJ0Jv3qVJ65jHyH8TaJ4fqCfrXebtriXqd45nmLLAxu2G h9vg== X-Forwarded-Encrypted: i=1; AKwUvBzJFiWxWncTNfHY5YAzkw0OPYgz/4Cha6u+fxSvc8lTxFsZVfTbAVPkBSqo/amcINwNBoVujbtEqWft@lists.postgresql.org X-Gm-Message-State: AFuF++mG1aV4fvBMJ9iClZf5p2HpD9afJjtRCWp5NIaGq1VVi0CMcNVa z6rv/ydm15u5U13NQ/dnm08VxWmA/QND0F32diTXn7nlZLTdy12jazmrdyLtxY9BMDmvFYcpfkg y05e8 X-Gm-Gg: AYBFou2qWXF5QOuDX9m5c+NkkIUfpwKNt20YCQTu/UaAWaLL/yY1yEyc1doich4KWJQ FkcUpb/qUTAiz2A9cql+ufDZljFBJmzhxQLv8WfxJ3UhHTBinxSgnN1Nq+SveHKZAwm4wUdxetk iRnVXXw+2U6n9ulhQiBfjXyW4kG0Z/g/GWLRO3WbYsZxOpjS3LibLMYq95GjUs8WU/mNrf5vdrt d6ftaszMmgvWaIQhOZKBaDJ8EartR6WupacOFr1ybYmjntBzYVPPS3lx4VJJSffpcokb01Og/sS 0qDMlIkwoR065AA3vhT5AsuDo1YnNp9cP2/yJDoc1bTiml5OHKmwxSosYB2qPaGzrAGIuOkgUKG ZqTlvOJjWf4abDx4J8E5z5ucGsPZh2XnCCSzUZcqJoQOcNNOVh3Kh8/YxxR5r7Uxqq54ek1tpO/ Vzk5ptTiYGewzWWJ+HK7GqaoEvFaNjlIgeg9aiTa9s06my4AC7p265uT9olgs2B/0YKYXvdHpW4 gnIwKOkDlTN6Rtk9WAKi+OOUIILeUV8Bx7ipJhW X-Received: by 2002:a17:907:c20:b0:c26:1648:a070 with SMTP id a640c23a62f3a-c2ac2540e21mr630697566b.43.1790374392902; Fri, 25 Sep 2026 15:13:12 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:260:796c:bf35:977f:af41:d798]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c2ae757b50fsm172405166b.32.2026.09.25.15.13.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Sep 2026 15:13:12 -0700 (PDT) Message-ID: Subject: Re: log_line_prefix and JSON log format From: Laurenz Albe To: Tom Lane Cc: michael@schoenitzer.de, pgsql-docs@lists.postgresql.org Date: Sat, 26 Sep 2026 00:13:10 +0200 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> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.60.2 (3.60.2-2.fc44) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2026-09-25 at 11:36 -0400, Tom Lane wrote: > 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 =3D '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 th= is > > > documented. >=20 > > True; here is a patch. >=20 > 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.=C2=A0 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