Re: TIMING A QUERY ??? - Mailing list pgsql-performance

From Andrew Sullivan
Subject Re: TIMING A QUERY ???
Date
Msg-id 20070711153911.GQ1241@phlogiston.dyndns.org
Whole thread Raw
In response to TIMING A QUERY ???  (smiley2211 <smiley2211@yahoo.com>)
Responses Re: TIMING A QUERY ???
Re: TIMING A QUERY ???
List 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 by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: WALL on controller without battery?
Next
From: "Jignesh K. Shah"
Date:
Subject: Re: PostgreSQL publishes first real benchmark