Re: Logging SQL queries to optimize them ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Bruno Baguette" <pgsql-ml@xxxxxxxxxxxx> wrote
>
>
> Is there a way to log all SQL queries, with the date/time when they were 
> launched, and the cost of that query (if this is possible) in order to see 
> which queries need to be optimized ?
>

See if log_statement, log_statement_stats parameters can help you. Also, 
EXPLAIN ANALYZE can help you more on the target query.

Regards,
Qingqing 




[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux