Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WuB25-00053V-HX for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Jun 2014 01:39:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WuB25-0001HR-1x for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Jun 2014 01:39:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WuB24-0001HJ-Ax for pgsql-bugs@postgresql.org; Tue, 10 Jun 2014 01:39:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WuB20-0000xD-Ry for pgsql-bugs@postgresql.org; Tue, 10 Jun 2014 01:39:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s5A1dJAD013435; Mon, 9 Jun 2014 21:39:19 -0400 From: Tom Lane To: geoff@sea-incorporated.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #10587: ERROR: variable not found in subplan target list In-reply-to: <20140609191609.2586.95459@wrigleys.postgresql.org> References: <20140609191609.2586.95459@wrigleys.postgresql.org> Comments: In-reply-to geoff@sea-incorporated.com message dated "Mon, 09 Jun 2014 19:16:09 -0000" Date: Mon, 09 Jun 2014 21:39:19 -0400 Message-ID: <13434.1402364359@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org geoff@sea-incorporated.com writes: > The following SQL has been verified to yield a planner error in 9.2.2 and > 9.2.8 (maybe others), but the query succeeds in 9.3.4. Thanks for the compact test case! I believe this patch fixes it: http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=187ae17300776f48b2bd9d0737923b1bf70f606e regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs