Re: Anonymous code block with parameters - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject Re: Anonymous code block with parameters
Date
Msg-id 541C7B72.7040508@joh.to
Whole thread Raw
In response to Re: Anonymous code block with parameters  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-hackers
On 2014-09-19 8:20 PM, Merlin Moncure wrote:
> actually, this trick *only* works during json serialization -- it
> allows control over the column names that row() masks over.  trying to
> expand (tup).* still gives the dreaded "ERROR:  record type has not
> been registered".  That's because this works:
>
> select (q).* from (select 1 as a, 2 as b) q;
>
> but this doesn't:
>
> select ((select q from (select a,b) q)).* from (select 1 as a, 2 as b) q;

Yeah.  This is a seriously missing feature and a PITA. :-(


.marko



pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Anonymous code block with parameters
Next
From: Simon Riggs
Date:
Subject: Re: Turning off HOT/Cleanup sometimes