X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C09B23A3D09 for ; Tue, 26 Oct 2004 20:18:12 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 96533-03 for ; Tue, 26 Oct 2004 19:18:10 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id 51CF43A3B5B for ; Tue, 26 Oct 2004 20:18:11 +0100 (BST) Received: from [64.81.245.111] (account josh@agliodbs.com HELO temoku.sf.agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 6558784; Tue, 26 Oct 2004 12:19:36 -0700 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: pgsql-performance@postgresql.org Subject: Re: Measuring server performance with psql and pgAdmin Date: Tue, 26 Oct 2004 12:20:21 -0700 User-Agent: KMail/1.6.2 Cc: "Joost Kraaijeveld" References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200410261220.21435.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/436 X-Sequence-Number: 8912 Joost, > 1. The manual says about "explain analyze" : "The ANALYZE option causes the > statement to be actually executed, not only planned. The total elapsed time > expended within each plan node (in milliseconds) and total number of rows > it actually returned are added to the display." Does this time include > datatransfer or just the time the database needs to collect the data, > without any data transfer? Correct. It's strictly backend time. > 2. If the time is without data transfer to the > client, is there a reliable way to measure the time needed to run the query > and get the data (without the overhead of a program that does something > with the data)? in PSQL, you can use \timing -- --Josh Josh Berkus Aglio Database Solutions San Francisco