Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1vR9-0003eI-N1 for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Nov 2016 13:18:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c1vR8-0002mQ-QG for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Nov 2016 13:18:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c1vQU-000248-GM for pgsql-bugs@postgresql.org; Wed, 02 Nov 2016 13:17:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c1vQN-00040q-J6 for pgsql-bugs@postgresql.org; Wed, 02 Nov 2016 13:17:57 +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 uA2DHhkV009843; Wed, 2 Nov 2016 09:17:43 -0400 From: Tom Lane To: Michael Paquier cc: Pavel Stehule , =?UTF-8?B?UGF2ZWwgSGFuw6Fr?= , "pgsql-bugs@postgresql.org" Subject: Re: Problems with "pg.dropped" column after upgrade 9.5 to 9.6 In-reply-to: References: <83shraampf.fsf@is-it.eu> Comments: In-reply-to Michael Paquier message dated "Wed, 02 Nov 2016 16:46:46 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9841.1478092663.1@sss.pgh.pa.us> Date: Wed, 02 Nov 2016 09:17:43 -0400 Message-ID: <9842.1478092663@sss.pgh.pa.us> X-Pg-Spam-Score: -4.2 (----) 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 Michael Paquier writes: > And one bisect later: > commit: 3fc6e2d7f5b652b417fa6937c34de2438d60fa9f > author: Tom Lane > date: Mon, 7 Mar 2016 15:58:22 -0500 > Make the upper part of the planner work by generating and comparing Paths Yeah. The reimplementation I did in createplan.c causes the planner to generate a targetlist that seems valid in practice, but doesn't pass the rather simplistic test in ExecCheckPlanOutput. (The latter is expecting a simple null Const corresponding to a dropped column, but what it's getting is a Var that references a null Const one plan level down.) Not sure whether it's reasonable to make the planner jump through extra hoops here, or complicate the null-for-dropped-cols test in ExecCheckPlanOutput, or just delete that as not really needed. 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