Re: How to rename each field in ROW expression?

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Re: How to rename each field in ROW expression?
Дата
Msg-id AANLkTim1n3skp9u0hu_F8sQKEjaXdDgfzxsSd5QrnRRG@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to rename each field in ROW expression?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Tue, Nov 16, 2010 at 00:18, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Why?  It's an anonymous type, you shouldn't care about names.
> If you do, make a real named rowtype.

If so, we cannot extract any fields in an anonymous type, right?
We cannot lookup fields with (an anonymous type).name because
the fields have no names.

=# SELECT (ROW(123, 'ABC', NULL)).*;
ERROR:  record type has not been registered

--
Itagaki Takahiro


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Per-column collation
Следующее
От: Robert Haas
Дата:
Сообщение: Re: libpq changes for synchronous replication