Re: How to rename each field in ROW expression? - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject Re: How to rename each field in ROW expression?
Date
Msg-id AANLkTim1n3skp9u0hu_F8sQKEjaXdDgfzxsSd5QrnRRG@mail.gmail.com
Whole thread Raw
In response to Re: How to rename each field in ROW expression?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Per-column collation
Next
From: Robert Haas
Date:
Subject: Re: libpq changes for synchronous replication