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.94.2) (envelope-from ) id 1s6We1-0007MX-Lh for pgsql-general@arkaria.postgresql.org; Mon, 13 May 2024 14:27:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s6Wd3-000n75-GK for pgsql-general@arkaria.postgresql.org; Mon, 13 May 2024 14:26:13 +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.94.2) (envelope-from ) id 1s6Wd2-000n6x-SA for pgsql-general@lists.postgresql.org; Mon, 13 May 2024 14:26:12 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s6Wd0-0000hj-HT for pgsql-general@lists.postgresql.org; Mon, 13 May 2024 14:26:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 44DEQ9e7740640; Mon, 13 May 2024 10:26:09 -0400 From: Tom Lane To: "Zwettler Markus (OIZ)" cc: "pgsql-general@lists.postgresql.org" Subject: Re: how to completely turn off statement error logging In-reply-to: References: Comments: In-reply-to "Zwettler Markus (OIZ)" message dated "Mon, 13 May 2024 14:10:49 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <740638.1715610369.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 13 May 2024 10:26:09 -0400 Message-ID: <740639.1715610369@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Zwettler Markus (OIZ)" writes: > I don't want to log statement errors in the server logfile - whether the= statement string nor the error message. You need to set log_min_messages higher than ERROR. You might consider using LOG or FATAL rather than PANIC, though. > I set "log_min_error_statement =3D panic" according to the docs: > To effectively turn off logging of failing statements, set this paramete= r to PANIC. This setting controls whether the STATEMENT: detail is appended to a message, but not the basic choice of whether to emit the message. regards, tom lane