Re: timing queries?

From: "P(dot)J(dot) \"Josh\" Rovero" <rovero(at)sonalysts(dot)com>
To: Andy Kriger <akriger(at)greaterthanone(dot)com>
Cc: Pgsql-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: timing queries?
Date: 2002-12-02 20:28:43
Message-ID: 3DEBC27B.20903@sonalysts.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In 7.3 psql, just issue (at the psql prompt):

\timing

All queries subsequent to the command will have timing info.

\timing

again to toggle it off.

Andy Kriger wrote:
> Is it possible to find out how long a query takes in the psql command-line
> tool? For example, when I exectute a query I want to see 28ms or whatever
> before the query results. If not in the command-line tool, is there a way to
> log this info? (I have query logging turned on, but that just shows the
> query being executed). I need this info to compare against making calls
> through JDBC and through an object-layer on top of JDBC.
>
> thx
> andy
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>

--
P. J. "Josh" Rovero Sonalysts, Inc.
Email: rovero(at)sonalysts(dot)com www.sonalysts.com 215 Parkway North
Work: (860)326-3671 or 442-4355 Waterford CT 06385
***********************************************************************

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Terry Yapt 2002-12-02 20:32:51 passwords in pg_shadow
Previous Message Christopher Kings-Lynne 2002-12-02 20:25:34 Re: 7.4 Wishlist