Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csvKB-0004d2-RM for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Mar 2017 17:54:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1csvKB-0006an-EB for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Mar 2017 17:54:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1csvIe-0001W8-2p for pgsql-hackers@postgreSQL.org; Tue, 28 Mar 2017 17:52:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1csvIb-0002Ue-WD for pgsql-hackers@postgreSQL.org; Tue, 28 Mar 2017 17:52:55 +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 v2SHqoXh016804; Tue, 28 Mar 2017 13:52:50 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgreSQL.org Subject: Protection lost in expression eval changeover MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16802.1490723570.1@sss.pgh.pa.us> Date: Tue, 28 Mar 2017 13:52:50 -0400 Message-ID: <16803.1490723570@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org CheckVarSlotCompatibility contains the comment * Note: we allow a reference to a dropped attribute. slot_getattr will * force a NULL result in such cases. While still true, that second sentence is now quite irrelevant, because we don't go through slot_getattr anymore. So it seems like we are missing some needed protection. I'm inclined to think that it'd be all right to just throw an error immediately in CheckVarSlotCompatibility if the target column is dropped. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers