Re: How to rename each field in ROW expression?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: How to rename each field in ROW expression?
Date: 2010-11-15 15:18:48
Message-ID: 13938.1289834328@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com> writes:
> Is it possible to change names fields in ROW?
> We can use CREATE TYPE AS on ahead, but I'd like to
> change names of ROW expression in ad-hoc queries.

Why? It's an anonymous type, you shouldn't care about names.
If you do, make a real named rowtype.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2010-11-15 15:26:43 Re: Latches with weak memory ordering (Re: max_wal_senders must die)
Previous Message Tom Lane 2010-11-15 15:13:40 Re: MULTISET and additional functions for ARRAY