Re: TIMING A QUERY ???

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: TIMING A QUERY ???
Дата
Msg-id 20070711153911.GQ1241@phlogiston.dyndns.org
обсуждение исходный текст
Ответ на TIMING A QUERY ???  (smiley2211 <smiley2211@yahoo.com>)
Ответы Re: TIMING A QUERY ???  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: TIMING A QUERY ???  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-performance
On Wed, Jul 11, 2007 at 08:21:40AM -0700, smiley2211 wrote:
>
> How can I get the time it takes a query to execute - explain analyze is
> taking over 5 hours to complete

You can't get it any faster than what explain analyse does: it runs
the query.  How else would you get the answer?

> ...can I use \timing???  I don't get any time when using the
> \timing option...

How so?  It returns Time: N ms at the end of output for me.

A

--
Andrew Sullivan  | ajs@crankycanuck.ca
In the future this spectacle of the middle classes shocking the avant-
garde will probably become the textbook definition of Postmodernism.
                --Brad Holland

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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: WALL on controller without battery?
Следующее
От: "Jignesh K. Shah"
Дата:
Сообщение: Re: PostgreSQL publishes first real benchmark