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)
Список pgsql-general
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
Дата:
Сообщение: Is it possible to have multiple names for a column?
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Is it possible to have multiple names for a column?