Is there a way to now show DETAIL
message of a logged statement in logs? The reason for that is that we would not like to expose bind parameters in logs.
Question posted in PostgreSQL
The official documentation can be found here.
The official documentation can be found here.
2
Answers
You cannot suppress detail messages in the log, but you can suppress logging the bind parameters by setting
log_parameter_max_length
to 0.From:
https://www.postgresql.org/docs/current/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHAT
So: