From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: pgsql-bugs@lists.postgresql.org
To: guillaume-postgresql@outters.eu
Subject: Re: BUG #15590: crosstab_hash unable to work with modified types (CreateTupleDescCopy returning dropped attributes?)
Date: Fri, 11 Jan 2019 17:24:27 +0000
Message-ID: <87fttznn86.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <15590-c8b3ea603dbece1e@postgresql.org>
References: <15590-c8b3ea603dbece1e@postgresql.org>
>>>>> "PG" == PG Bug reporting form <noreply@postgresql.org> writes:
PG> Encapsulating crosstab_hash in a function (to define its return
PG> type) does not work when the (user-defined) return type owns
PG> 'dropped' attributes.
Yeah. The code to generate tuples doesn't make any attempt to handle
dropped columns in the result. This is nothing to do with
CreateTupleDescCopy.
I guess this has always been broken; there's no evidence that the code
ever made any attempt to handle it. I'll see about fixing it.
--
Andrew (irc:RhodiumToad)
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: andrew@tao11.riddles.org.uk, guillaume-postgresql@outters.eu
Subject: Re: BUG #15590: crosstab_hash unable to work with modified types (CreateTupleDescCopy returning dropped attributes?)
In-Reply-To: <87fttznn86.fsf@news-spur.riddles.org.uk>
References: <15590-c8b3ea603dbece1e@postgresql.org> <87fttznn86.fsf@news-spur.riddles.org.uk>
* 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