Re: how to completely turn off statement error logging - Mailing list pgsql-general

From Tom Lane
Subject Re: how to completely turn off statement error logging
Date
Msg-id 740639.1715610369@sss.pgh.pa.us
Whole thread Raw
In response to how to completely turn off statement error logging  ("Zwettler Markus (OIZ)" <Markus.Zwettler@zuerich.ch>)
Responses AW: [Extern] Re: how to completely turn off statement error logging
List pgsql-general
"Zwettler Markus (OIZ)" <Markus.Zwettler@zuerich.ch> 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 = panic" according to the docs:
> To effectively turn off logging of failing statements, set this parameter 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



pgsql-general by date:

Previous
From: David Rowley
Date:
Subject: Re: SELECT DISTINCT chooses parallel seqscan instead of indexscan on huge table with 1000 partitions
Next
From: "Zwettler Markus (OIZ)"
Date:
Subject: AW: [Extern] Re: how to completely turn off statement error logging