Re: Can column name aliases be supported?

From: Bosco Rama <postgres(at)boscorama(dot)com>
To: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Can column name aliases be supported?
Date: 2012-08-22 22:41:12
Message-ID: 50356008.9020303@boscorama.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ooops! Hit send too fast...

On 08/22/12 15:34, Bosco Rama wrote:
> On 08/22/12 15:19, Gauthier, Dave wrote:
>>
>> I know a view can be used to alias one of them.
>
> It can alias all of them:
>
> create view xyz as
> select *, last_name as lname, last_name as surname
> from mytable;
>
> (not the nicest version but functional)

... and then use an INSTEAD/ALSO rule to do the update, if needed.

Bosco.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nick 2012-08-22 23:06:27 At what point does a big table start becoming too big?
Previous Message Rob Sargent 2012-08-22 22:35:54 Re: Can column name aliases be supported?