I have been searching the Internet for more than two hours, but I'm really stuck with this. I want PostgreSQL (I use version 8.4 on Debian) to start logging only slow queries.
In this regard, I use the following configuration in postgresql.conf
:
log_destination = 'csvlog' logging_collector = on log_min_messages = log log_min_duration_statement = 1000 log_duration = on log_line_prefix = '%t ' log_statement = 'all'
The rest of the configuration is in the default settings (commented out). Logging works, but it logs all claims, even those below the threshold of 1000 (ms). If I do "show all", I see that all settings are valid. I also tried restarting Postgres.
I hope someone can help me.
source share