From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
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:11:50 |
Message-ID: | 200212022011.gB2KBod27280@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
In 7.3, you can use \timing to see query duration, or SET log_duration
TO 'on';SET client_min_messages TO 'log'.
---------------------------------------------------------------------------
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
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2002-12-02 20:25:34 | Re: 7.4 Wishlist |
Previous Message | Medi Montaseri | 2002-12-02 20:05:45 | Re: What could cause total crash of a postgres installation? |