X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0DA59D1B8CD for ; Fri, 29 Aug 2003 17:00:42 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 38886-10 for ; Fri, 29 Aug 2003 14:00:10 -0300 (ADT) Received: from mail.speakeasy.net (mail7.speakeasy.net [216.254.0.207]) by svr1.postgresql.org (Postfix) with ESMTP id 5F0A6D1B8CF for ; Fri, 29 Aug 2003 14:00:09 -0300 (ADT) Received: (qmail 15274 invoked from network); 29 Aug 2003 16:57:00 -0000 Received: from unknown (HELO speakeasy.org) (kgeis@[66.93.130.165]) (envelope-sender ) by mail7.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 29 Aug 2003 16:57:00 -0000 Message-ID: <3F4F85DB.2030402@speakeasy.org> Date: Fri, 29 Aug 2003 09:56:59 -0700 From: Ken Geis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030612 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sean Chittenden Cc: Bruno Wolff III , pgsql-performance@postgresql.org Subject: Re: bad estimates References: <3F4E99F7.7080604@speakeasy.org> <20030829025109.GD4373@wolff.to> <3F4EBF7E.8020602@speakeasy.org> <20030829030156.GF4373@wolff.to> <3F4EC1D0.5010503@speakeasy.org> <20030829033818.GA5577@wolff.to> <3F4ECC78.7090502@speakeasy.org> <20030829040519.GA5746@wolff.to> <3F4F7A07.30404@speakeasy.org> <20030829163613.GA51475@perrin.nxad.com> In-Reply-To: <20030829163613.GA51475@perrin.nxad.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/507 X-Sequence-Number: 3323 Sean Chittenden wrote: >>I found I'm suffering from an effect detailed in a previous thread titled >> >> Does "correlation" mislead the optimizer on large tables? > > > I don't know about large tables, but this is a big problem and > something I'm going to spend some time validating later today. I > think Manfred's patch is pretty good and certainly better than where > we are but I haven't used it yet to see if it's the magic ticket for > many of these index problems. I had to dig through a lot of archives to find this. Is this the patch, from last October? http://members.aon.at/pivot/pg/16-correlation.diff If so, I'll try it out and report my results. Ken