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

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Is it possible to have multiple names for a column?
Дата
Msg-id
2264.1158262186@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Is it possible to have multiple names for a column? felix@crowfix.com
Re: Is it possible to have multiple names for a column? Scott Marlowe <smarlowe@g2switchworks.com>
Re: Is it possible to have multiple names for a column? Bernhard Weisshuhn <bkw@weisshuhn.de>
Re: Is it possible to have multiple names for a column? Tom Lane <tgl@sss.pgh.pa.us>
felix@crowfix.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
В списке pgsql-general по дате отправления
От: felix@crowfix.com
Дата:
От: Scott Marlowe
Дата:
FAQ