Re: TIMING A QUERY ???

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: TIMING A QUERY ???
Date: 2007-07-11 15:39:11
Message-ID: 20070711153911.GQ1241@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)crankycanuck(dot)ca
In the future this spectacle of the middle classes shocking the avant-
garde will probably become the textbook definition of Postmodernism.
--Brad Holland

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Alan Hodgson 2007-07-11 15:47:44 Re: WALL on controller without battery?
Previous Message Andrew Sullivan 2007-07-11 15:36:20 Re: WALL on controller without battery?