Re: Query Plan Columns

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: Query Plan Columns
Дата
Msg-id 1DBCA69A-5440-4232-B8FF-D5D457D4495A@kineticode.com
обсуждение исходный текст
Ответ на Re: Query Plan Columns  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Список pgsql-hackers
On Nov 9, 2010, at 12:12 AM, Dimitri Fontaine wrote:

> WITH plan AS (
>  EXPLAIN (format table) SELECT * FROM bar
> )
> INSERT INTO plan_audit
> SELECT * FROM plan
> WHERE actual_total_time > 12 * interval '100 ms';

Yeah, that would be nice, but my current implementation has a row for each node, and a single explain can have many
nodes.With this, you'd only get the top-level node (and not even that, as you didn't do EXPLAIN ANALYZE, so
actual_total_timewould be blank!). 

But I do like the idea…

Best,

David



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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Query Plan Columns
Следующее
От: Itagaki Takahiro
Дата:
Сообщение: Re: CLUSTER can change t_len