Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLh6B-0001IJ-5V for pgsql-committers@arkaria.postgresql.org; Sun, 11 Nov 2018 04:11:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gLh42-0004KS-Cb for pgsql-committers@arkaria.postgresql.org; Sun, 11 Nov 2018 04:09:34 +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.89) (envelope-from ) id 1gLh42-0004Jw-7Z for pgsql-committers@lists.postgresql.org; Sun, 11 Nov 2018 04:09:34 +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.89) (envelope-from ) id 1gLh3u-00083E-F0 for pgsql-committers@lists.postgresql.org; Sun, 11 Nov 2018 04:09:33 +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 wAB49HEv019980; Sat, 10 Nov 2018 23:09:18 -0500 From: Tom Lane To: Andres Freund cc: David Rowley , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Remove ineffective check against dropped columns from slot_getat In-reply-to: <20181110223527.e6ucv3vphzzdpfor@alap3.anarazel.de> References: <20181110223527.e6ucv3vphzzdpfor@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sat, 10 Nov 2018 14:35:27 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19978.1541909357.1@sss.pgh.pa.us> Date: Sat, 10 Nov 2018 23:09:17 -0500 Message-ID: <19979.1541909357@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-11-11 01:11:34 +1300, David Rowley wrote: >> Would it not be worth an Assert(!TupleDescAttr(tupleDesc, attnum - >> 1)->attisdropped); so that we're more likely to discover any issues >> where cached plans are not invalidated correctly? > I don't think it'd really do much. FWIW, I agree. We'd need assertions in many more places than this if we wanted reasonable coverage on the point, and I doubt it's worth the work. regards, tom lane