Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4Atm-0000om-Lm for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Nov 2016 18:13:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c4Atm-0001SA-8i for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Nov 2016 18:13:30 +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 1c4Atk-0001Qp-NH for pgsql-hackers@postgresql.org; Tue, 08 Nov 2016 18:13:28 +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 1c4Ath-0003jg-Sd for pgsql-hackers@postgresql.org; Tue, 08 Nov 2016 18:13:28 +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 uA8IDJKo032471; Tue, 8 Nov 2016 13:13:19 -0500 From: Tom Lane To: Jim Nasby cc: Michael Paquier , Pg Hackers , Karl Lehenbauer Subject: Re: Fix bug in handling of dropped columns in pltcl triggers In-reply-to: <718405a6-00df-fdd3-6f3c-ba7db120fffb@BlueTreble.com> References: <16808.1478294889@sss.pgh.pa.us> <718405a6-00df-fdd3-6f3c-ba7db120fffb@BlueTreble.com> Comments: In-reply-to Jim Nasby message dated "Mon, 07 Nov 2016 16:25:23 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32469.1478628799.1@sss.pgh.pa.us> Date: Tue, 08 Nov 2016 13:13:19 -0500 Message-ID: <32470.1478628799@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) 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 Jim Nasby writes: > On 11/4/16 4:28 PM, Tom Lane wrote: >> My proposal therefore is for SPI_fnumber to ignore (not match to) >> dropped columns, and to remove any caller-side attisdropped tests that >> thereby become redundant. > Yeah, SPI users certainly shouldn't need to worry about attisdropped, > and exposing attnum doesn't seem like a good idea either. OK, I pushed a patch to centralize this in SPI_fnumber. 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