Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpaWC-0006RU-Fh for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Sep 2017 13:37:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dpaWB-0007JL-UA for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Sep 2017 13:37:23 +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 1dpaVT-00053o-VW for pgsql-bugs@postgresql.org; Wed, 06 Sep 2017 13:36:40 +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 1dpaVR-0004eg-1Q; Wed, 06 Sep 2017 13:36:38 +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 v86DWYOd018697; Wed, 6 Sep 2017 09:32:34 -0400 From: Tom Lane To: phb07@apra.asso.fr cc: pgsql-bugs@postgresql.org, Kevin Grittner Subject: Re: BUG #14799: SELECT * FROM transition_table in a statement-level trigger In-reply-to: <20170906120005.25630.84360@wrigleys.postgresql.org> References: <20170906120005.25630.84360@wrigleys.postgresql.org> Comments: In-reply-to phb07@apra.asso.fr message dated "Wed, 06 Sep 2017 12:00:05 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18695.1504704754.1@sss.pgh.pa.us> Date: Wed, 06 Sep 2017 09:32:34 -0400 Message-ID: <18696.1504704754@sss.pgh.pa.us> 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 phb07@apra.asso.fr writes: > I am playing a bit with transition tables in statement-level triggers, using > the postgres V10 beta 4 version. I am facing an issue that I suspect to be a > bug (unless it is a design limitation). I have built a small test case to > reproduce what I have discovered. > ... > It looks like the resolution of the column list has not taken into account a > "NOT attisdropped" condition when scanning the pg_attribute table (or an > equivalent in memory structure). Yeah. The RTE_NAMEDTUPLESTORE patch seems to have piggybacked on the code for RTE_CTE and friends, none of which could have dropped columns so the case wasn't considered. I think the immediate problem is in expandRTE() but I have zero faith that there aren't comparable bugs elsewhere. 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