From: Tom Lane <tgl@sss.pgh.pa.us>
To: phb07@apra.asso.fr
Cc: pgsql-bugs@postgresql.org, Kevin Grittner <kgrittn@postgresql.org>
Subject: Re: BUG #14799: SELECT * FROM transition_table in a statement-level trigger
Date: Wed, 06 Sep 2017 09:32:34 -0400
Message-ID: <18696.1504704754@sss.pgh.pa.us> (raw)
In-Reply-To: <20170906120005.25630.84360@wrigleys.postgresql.org>
References: <20170906120005.25630.84360@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, phb07@apra.asso.fr, kgrittn@postgresql.org
Subject: Re: BUG #14799: SELECT * FROM transition_table in a statement-level trigger
In-Reply-To: <18696.1504704754@sss.pgh.pa.us>
References: <20170906120005.25630.84360@wrigleys.postgresql.org> <18696.1504704754@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox