Information
The log_min_duration_statement setting specifies the minimum execution time for a statement at which the statement will be logged. For example, if you set it to 250ms, then all SQL statements that run 250ms or longer will be logged. Setting it to -1 disables this feature, which is recommended. Setting it to 0 records all statements regardless of duration.
Rationale:
Logging of SQL statements may include sensitive information that should not be recorded in logs.
Solution
Execute the following SQL statement(s) as superuser to remediate this setting (in this example, to -1):
postgres=# alter system set log_min_duration_statement = -1;
ALTER SYSTEM
postgres=# select pg_reload_conf();
pg_reload_conf
----------------
t
(1 row)
Default Value:
-1