From: Frank Bax <fbax@sympatico.ca>
To: Torbjög ==rn Andersson <tobbe@embryo.se>
Cc: pgsql-sql@postgresql.org
Subject: Re: How long does it take?
Date: Wed, 13 Feb 2002 21:12:45 -0500
Message-ID: <3.0.6.32.20020213211245.007d65b0@pop6.sympatico.ca> (raw)
In-Reply-To: <B89079A1.175D%tobbe@embryo.se>
References: <20020213182241.GB10858@rice.edu>
time psql -c "select now()"
now
------------------------
2002-02-13 21:21:17-05
(1 row)
0.09s real 0.05s user 0.01s system
At 08:14 PM 2/13/02 +0100, Torbjög==rn Andersson wrote:
>Does anyone have any good tips on how to measure the time it takes to
>extecute an SQL-statement in psql?
>
>I'd like to use it in conjunction with EXPLAIN in order to help me determine
>what needs to be optimized as well as checking that my optimization actually
>improved matters...
>
>Best regards
>
>
>Torbjörn Andersson
>---------------------------------------------------
>Embryo Communication phone: +46 (0) 31-774 39 11(00)
>Kungsgatan 7a fax: +46 (0)31 774 07 80
>S-411 19 Göteborg mobile: 0708-30 70 04
>Sweden home: http://www.embryo.se/
> mail: torbjorn.andersson@embryo.se
>---------------------------------------------------
>"Att idag tänka annorlunda än igår skiljer den vise från den envise." — John
>Steinbeck
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: fbax@sympatico.ca, tobbe@embryo.se
Subject: Re: How long does it take?
In-Reply-To: <3.0.6.32.20020213211245.007d65b0@pop6.sympatico.ca>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox