X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 1EF1E9F9B01 for ; Thu, 25 May 2006 13:48:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 91732-09 for ; Thu, 25 May 2006 13:48:43 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from r1.mycybernet.net (r1.mycybernet.net [209.5.206.8]) by postgresql.org (Postfix) with ESMTP id 2A2209F94EA for ; Thu, 25 May 2006 13:48:42 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227]:37668 helo=phlogiston.dydns.org) by r1.mycybernet.net with esmtp (Exim 4.50 (FreeBSD)) id 1FjJ0q-000FPe-VV for pgsql-performance@postgresql.org; Thu, 25 May 2006 12:48:41 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 495B73FAF; Thu, 25 May 2006 12:48:40 -0400 (EDT) Date: Thu, 25 May 2006 12:48:40 -0400 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: Optimizing a huge_table/tiny_table join Message-ID: <20060525164840.GA2954@phlogiston.dyndns.org> References: <200605251631.k4PGV4O28645@panix3.panix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200605251631.k4PGV4O28645@panix3.panix.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/467 X-Sequence-Number: 19254 On Thu, May 25, 2006 at 12:31:04PM -0400, kynn@panix.com wrote: > Well, they're not my statistics; they're explain's. You mean there's Explain doesn't get them from nowhere. How often is the table being ANALYSEd? > More bewildering still (and infuriating as hell--because it means that > all of my work for yesterday has been wasted) is that I can no longer > reproduce the best query plan I posted earlier, even though the tables > have not changed at all. (Hence I can't post the explain analyze for I find that very hard to believe. Didn't change _at all_? Are you sure no VACUUMs or anything are happening automatically? > Anyway, I take it that there is no way to bypass the optimizer and > instruct PostgreSQL exactly how one wants the search performed? No, there isn't. A -- Andrew Sullivan | ajs@crankycanuck.ca The fact that technology doesn't work is no bar to success in the marketplace. --Philip Greenspun