Re: Anonymous code block with parameters

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Re: Anonymous code block with parameters
Дата
Msg-id 541C7B72.7040508@joh.to
обсуждение исходный текст
Ответ на Re: Anonymous code block with parameters  (Merlin Moncure <mmoncure@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Anonymous code block with parameters
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Turning off HOT/Cleanup sometimes