Received: from marketingchallenge.com (marketingchallenge.com [64.40.111.205] (may be forged)) by postgresql.org (8.11.3/8.11.4) with SMTP id g1DJZYE63016 for ; Wed, 13 Feb 2002 14:36:28 -0500 (EST) (envelope-from drfrog@telus.net) Received: (qmail 24309 invoked from network); 13 Feb 2002 19:35:22 -0000 Received: from clayton-cottingham.imc (HELO telus.net) (10.1.4.1) by marketingchallenge.com with SMTP; 13 Feb 2002 19:35:22 -0000 Message-ID: <3C6AC041.A89318CA@telus.net> Date: Wed, 13 Feb 2002 11:36:33 -0800 From: clayton cottingham X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.17-21mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: =?iso-8859-1?Q?Torbj=F6rn?= Andersson CC: pgsql-sql@postgresql.org Subject: Re: How long does it take? References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200202/143 X-Sequence-Number: 6571 see explain in the docs? http://www.postgresql.org/idocs/index.php?sql-explain.html or you could use perls timing modules as well ttfn Torbjö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)