Re: Is it possible to have multiple names for a column?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: felix(at)crowfix(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is it possible to have multiple names for a column?
Date: 2006-09-14 19:29:46
Message-ID: 2264.1158262186@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

felix(at)crowfix(dot)com writes:
> I am pretty certain no such SQL command exists. But is it possible to
> do something sneaky to the internal tables so that two names point to
> the same columnand everything just works?

No ... at least not for usefully large values of "work".

You might be able to do something involving a view that renames the
column in question, with as-yet-unconverted clients made to reference
the view. Offhand I'm not convinced that's easier than just fixing the
clients though ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2006-09-14 19:44:55 Re: Is it possible to have multiple names for a column?
Previous Message felix 2006-09-14 19:18:05 Is it possible to have multiple names for a column?