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 D78D48B9D0D for ; Thu, 3 Feb 2005 10:40:29 +0000 (GMT) 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 18668-02 for ; Thu, 3 Feb 2005 10:40:18 +0000 (GMT) Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.250.190.2]) by svr1.postgresql.org (Postfix) with ESMTP id CD3438B9D09 for ; Thu, 3 Feb 2005 10:40:20 +0000 (GMT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 57BDC31DD1; Thu, 3 Feb 2005 11:40:20 +0100 (MET) From: Gaetano Mendola X-Newsgroups: pgsql.performance Subject: Re: horizontal partition Date: Thu, 03 Feb 2005 11:40:20 +0100 Organization: PYRENET Midi-pyrenees Provider Lines: 22 Message-ID: <4201FF94.5090900@bigfoot.com> References: <200502021209.06878.josh@agliodbs.com> <200502021916.08960.josh@agliodbs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@pyrenet.fr To: Josh Berkus User-Agent: Mozilla Thunderbird 1.0 (Windows/20050202) X-Accept-Language: en-us, en In-Reply-To: <200502021916.08960.josh@agliodbs.com> To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/58 X-Sequence-Number: 10387 Josh Berkus wrote: > Gaetano, > > >>I did in that way just to not use postgresql specific feature. >>I can give it a try and I let you know, however the question remain, >>why the index usage is lost if used in that way ? > > > Because PostgreSQL is materializing the entire UNION data set in the > subselect. What Postgres version are you using? I thought this was fixed > in 7.4, but maybe not ... > Yes, I'm using with 7.4.x, so it was not fixed... Regards Gaetano Mendola