Received: from lists.unixathome.org (lists.unixathome.org [210.48.103.158]) by postgresql.org (Postfix) with ESMTP id E224647644B for ; Mon, 4 Mar 2002 11:34:55 -0500 (EST) Received: from wocker (lists.unixathome.org [210.48.103.158]) by lists.unixathome.org (8.11.6/8.11.6) with ESMTP id g24GYjk77968; Tue, 5 Mar 2002 05:34:45 +1300 (NZDT) (envelope-from dan@lists.unixathome.org) Message-Id: <200203041634.g24GYjk77968@lists.unixathome.org> From: "Dan Langille" Organization: DVL Software Limited To: Lucas Rockwell Date: Mon, 4 Mar 2002 11:34:43 -0500 MIME-Version: 1.0 Subject: Re: something similar to explain Reply-To: dan@langille.org Cc: pgsql-admin@postgresql.org References: In-reply-to: X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Archive-Number: 200203/43 X-Sequence-Number: 3578 On 4 Mar 2002 at 7:28, Lucas Rockwell wrote: > i am running some tests and i would like to see how long it takes to run a > query. "explain" gives me query plan info, but i want to actually run the > query and then find out how long it took. > > is there a way with psql to get the time it takes to perform a query? I was told about this last night: With 7.2, explain analyze http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/sql- explain.html -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples