Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 3B73D2E0073 for ; Thu, 3 Apr 2008 20:50:29 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 23765-06 for ; Thu, 3 Apr 2008 20:50:23 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by developer.postgresql.org (Postfix) with ESMTP id A2D982E007D for ; Thu, 3 Apr 2008 20:50:23 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m33NoLQF028178; Thu, 3 Apr 2008 19:50:21 -0400 (EDT) To: "Matt Klinker" cc: pgsql-performance@postgresql.org Subject: Re: Query plan excluding index on view In-reply-to: <3bda20f60804031631j177b42e2u82b5033fd23c2293@mail.gmail.com> References: <3bda20f60804031631j177b42e2u82b5033fd23c2293@mail.gmail.com> Comments: In-reply-to "Matt Klinker" message dated "Thu, 03 Apr 2008 17:31:45 -0600" Date: Thu, 03 Apr 2008 19:50:21 -0400 Message-ID: <28177.1207266621@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/39 X-Sequence-Number: 29532 "Matt Klinker" writes: > I know it's generally requested to include the EXPLAIN text when submitting > a specific question, but I thought perhaps this was generic enough that > someone might at least have some suggestions. You're usually only going to get generic suggestions from a generic explanation. One thought here though is that it's only been since PG 8.2 that you had any hope of getting an indexscan on a join condition pushed down through a UNION, which it looks like is what you're hoping for. What version are you running? regards, tom lane