Re: how do i find out how long a query took?

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Darren Ferguson <darren(at)crystalballinc(dot)com>, Andy Kriger <akriger(at)greaterthanone(dot)com>, Pgsql-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: how do i find out how long a query took?
Date: 2002-09-30 18:28:51
Message-ID: Pine.LNX.4.33.0209301228210.22182-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 30 Sep 2002, Bruce Momjian wrote:

> Darren Ferguson wrote:
> > select version();
> > version
> > -------------------------------------------------------------
> > PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC 2.96
> > (1 row)
> >
> >
> > \timing does not work gives following
> >
> > oss=> \timing
> > Showing only tuples.
> > \t: extra argument 'iming' ignored
> >
> > Any ideas ??? or was it just 7.2.2??
>
> Oops, that is a 7.3 new feature. There isn't a way in 7.2.X. Perhaps
> you can set your psql prompt to the current time but I can't figure out
> how to do that either.

explain analyze in 7.2 should tell you how long the query took to run, but
won't give you the result set.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Luc Lachance 2002-09-30 18:37:45 Re: [SQL] CURRENT_TIMESTAMP
Previous Message Mike Sosteric 2002-09-30 18:24:13 Re: [GENERAL] arrays