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 315488B9E4A for ; Thu, 3 Feb 2005 03:16:51 +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 67416-06 for ; Thu, 3 Feb 2005 03:16:38 +0000 (GMT) Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by svr1.postgresql.org (Postfix) with ESMTP id 184C98B9E46 for ; Thu, 3 Feb 2005 03:16:41 +0000 (GMT) X-EthosMedia-Virus-Scanned: no infections found Received: from [63.195.55.98] (account josh@agliodbs.com HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 6982989; Wed, 02 Feb 2005 19:18:23 -0800 From: Josh Berkus Organization: Aglio Database Solutions To: Gaetano Mendola Subject: Re: horizontal partition Date: Wed, 2 Feb 2005 19:16:08 -0800 User-Agent: KMail/1.6.2 Cc: pgsql-performance@postgresql.org References: <200502021209.06878.josh@agliodbs.com> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200502021916.08960.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/44 X-Sequence-Number: 10373 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 ... -- Josh Berkus Aglio Database Solutions San Francisco