Re: Logging SQL queries to optimize them ?

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: Logging SQL queries to optimize them ?
Дата
Msg-id e0oo2d$2r7a$1@news.hub.org
обсуждение исходный текст
Список pgsql-performance
"Bruno Baguette" <pgsql-ml@baguette.net> 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



В списке pgsql-performance по дате отправления:

Предыдущее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: Large Binary Objects Middleware
Следующее
От: Jan Kesten
Дата:
Сообщение: Re: index not used again