Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 6E8F09FB272; Mon, 6 Aug 2007 12:31:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 61408-07; Mon, 6 Aug 2007 12:31:19 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from oxford.xeocode.com (unknown [62.232.55.118]) by postgresql.org (Postfix) with ESMTP id 141899FA5F5; Mon, 6 Aug 2007 12:31:18 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.67) (envelope-from ) id 1II4Y6-0004eQ-UA; Mon, 06 Aug 2007 16:31:15 +0100 From: Gregory Stark To: "Henrik Zagerholm" Cc: , Subject: Re: [PERFORM] Planner making wrong decisions 8.2.4. Insane cost calculations. In-Reply-To: (Henrik Zagerholm's message of "Mon, 6 Aug 2007 16:46:43 +0200") Organization: EnterpriseDB References: <0C963119-103A-4EB1-B9D8-0FD3E16A11F0@mac.se> <87abt4n75m.fsf@oxford.xeocode.com> X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX" 30018) Date: Mon, 06 Aug 2007 16:31:14 +0100 Message-ID: <873aywn0hp.fsf@oxford.xeocode.com> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/287 X-Sequence-Number: 118136 "Henrik Zagerholm" writes: > Ahh, my bad. It is a very small table but I have an unique index. > CREATE UNIQUE INDEX tbl_filetype_suffix_idx ON tbl_filetype_suffix > USING btree (filetype_suffix); Well it can't use that to help with a join. If you had an index on lower(filetype_suffix) it might be able to use it. I'm not sure though, especially if it's a small table. >> And any chance you could resend this stuff without the word-wrapping? >> It's pretty hard to read like this: >> > Resending and hopefully the line breaks are gone. I couldn't find any > in my sent mail. No, the double-quotes are gone but the lines are still wrapped. It's become quite a hassle recently to get mailers to do anything reasonable with code. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com