X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E1396D1CA4D for ; Fri, 30 Apr 2004 00:58:10 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 14374-03 for ; Fri, 30 Apr 2004 00:57:50 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2C5A6D1E5F1 for ; Fri, 30 Apr 2004 00:57:50 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i3U3vni0020260; Thu, 29 Apr 2004 23:57:50 -0400 (EDT) To: Joseph Shraibman Cc: pgsql-performance@postgresql.org Subject: Re: why can't 2 indexes be used at once? In-reply-to: References: Comments: In-reply-to Joseph Shraibman message dated "Thu, 29 Apr 2004 19:19:09 -0400" Date: Thu, 29 Apr 2004 23:57:49 -0400 Message-ID: <20259.1083297469@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/518 X-Sequence-Number: 6818 Joseph Shraibman writes: > My question: why can't it go through the first index, get a list of > pages in the table, then go through the second index, union the result > with the results from first index, and then go into the table? See TODO list ... regards, tom lane