Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 91FAF9FB5A5 for ; Wed, 11 Jul 2007 14:02:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 43483-05 for ; Wed, 11 Jul 2007 14:02:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id DAD3C9FB1CA for ; Wed, 11 Jul 2007 14:02:05 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1I8fZj-0002ov-3m for pgsql-performance@postgresql.org; Wed, 11 Jul 2007 13:02:03 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id C7D904050; Wed, 11 Jul 2007 13:01:57 -0400 (EDT) Date: Wed, 11 Jul 2007 13:01:57 -0400 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: TIMING A QUERY ??? Message-ID: <20070711170157.GX1241@phlogiston.dyndns.org> References: <11542393.post@talk.nabble.com> <20070711153911.GQ1241@phlogiston.dyndns.org> <26707.1184170255@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26707.1184170255@sss.pgh.pa.us> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/104 X-Sequence-Number: 25788 On Wed, Jul 11, 2007 at 12:10:55PM -0400, Tom Lane wrote: > Well, on some platforms (ie consumer-grade PCs) explain analyze can be a > lot slower than just running the query, Yes, I suppose I exaggerated when I said "can't get any faster", but given that the OP was talking on the order of hours for the EXPLAIN ANALYSE to return, I assumed that the problem is one of impatience and not clock cycles. After all, the gettimeofday() additional overhead is still not going to come in on the order of minutes without a _bursting_ huge query plan. A -- Andrew Sullivan | ajs@crankycanuck.ca Unfortunately reformatting the Internet is a little more painful than reformatting your hard drive when it gets out of whack. --Scott Morris