DEV Community

RK
RK

Posted on

How to enable the slow query log in Postgresql

We can capture the slow query details using the parameter “log_min_duration_statement”

Also we should consider the below parameters
* logging_collector
* log_directory
* log_filename
* log_statement
https://www.youtube.com/watch?v=g3Ccgh4q9AA&list=PLKShApAWCKLTCQeLLu_z_tHS5wICa4Qs9&index=1

Top comments (0)