PostgreSQL bug(?) – logging with a minimum log level

logpostgresqlpostgresql-9.3

I am using the log_min_error_statement – Setting in the PostgreSQL configuration file, but the logger does not react on the setting, either if I turn it on, or off, or set it to another level, the logger logs every statement. Could this be a possible bug in PostgreSQL logging?

Best Answer

the logger logs every statement

Then that behavior comes from log_statement:

log_statement (enum)

Controls which SQL statements are logged. Valid values are none (off), ddl, mod, and all (all statements). ddl logs all data definition statements,