Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 92809B5DBD0 for ; Fri, 1 Jul 2011 17:27:45 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 61582-01 for ; Fri, 1 Jul 2011 20:27:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id F31D8B5DBC8 for ; Fri, 1 Jul 2011 17:27:38 -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 p61KRakx004208; Fri, 1 Jul 2011 16:27:36 -0400 (EDT) To: Jon Nelson cc: pgsql-bugs@postgresql.org Subject: Re: view + explain + index scan -> bogus varno: 65001 (with some variations) In-reply-to: References: Comments: In-reply-to Jon Nelson message dated "Wed, 29 Jun 2011 22:42:37 -0500" Date: Fri, 01 Jul 2011 16:27:36 -0400 Message-ID: <4207.1309552056@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201107/3 X-Sequence-Number: 30615 Jon Nelson writes: > With 8.4.7, I ran into an issue trying to explain a VIEW query. > After much effort, I distilled the query down and was able to > replicate the issue with a test script, included below. FWIW, I can't reproduce such a failure with current 8.4 branch (nor any other). It's possible this has been fixed since 8.4.7, but I don't immediately see any commit log entries that look related. Another possibility is that there's something nondefault about your environment, for instance nondefault values for planner cost parameters, and the example depends on those to work (or rather, not work). regards, tom lane