Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gi0Xs-00061j-Pd for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Jan 2019 17:24:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gi0Xr-0004WL-J4 for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Jan 2019 17:24:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gi0Xr-0004W9-8q for pgsql-bugs@lists.postgresql.org; Fri, 11 Jan 2019 17:24:35 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gi0Xn-0003ni-Ot for pgsql-bugs@lists.postgresql.org; Fri, 11 Jan 2019 17:24:33 +0000 Received: from [192.168.127.1] (port=26336 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1gi0Xk-000JoV-9f; Fri, 11 Jan 2019 17:24:28 +0000 Received: from [127.0.0.1] (port=30986 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1gi0Xj-0004JY-K2; Fri, 11 Jan 2019 17:24:27 +0000 From: Andrew Gierth To: pgsql-bugs@lists.postgresql.org, guillaume-postgresql@outters.eu Subject: Re: BUG #15590: crosstab_hash unable to work with modified types (CreateTupleDescCopy returning dropped attributes?) In-Reply-To: <15590-c8b3ea603dbece1e@postgresql.org> (PG Bug reporting form's message of "Fri, 11 Jan 2019 15:25:56 +0000") Message-ID: <87fttznn86.fsf@news-spur.riddles.org.uk> References: <15590-c8b3ea603dbece1e@postgresql.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Fri, 11 Jan 2019 17:24:27 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "PG" == PG Bug reporting form 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)