Re: [GENERAL] Problem about pgsql's column alias

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB SD
Тема Re: [GENERAL] Problem about pgsql's column alias
Дата
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA4961F83@m0114.s-mxs.net
обсуждение исходный текст
Список pgsql-hackers
> > > > That seems like a rather poor excuse for not supporting a standard feature
> > > > that people seem to ask about every week.
> > >
> > > Actually, that was the first complaint that I can recall hearing in
> > > quite some time.
> >
> > Imho it is well documented, and the answer has always been that it is not easily doable,
> > so people don't complain, but I guess they are none the less annoyed.
> >
> > I would vote for doing the change.
> >
>
> Tom raised the issue of
>
> > SELECT 'foo'::character varying
> > Is "varying" an alias or part of the type name?
>
> which I've not seen addressed except for the suggestion to deprecate the
> use of :: for casting, which I would sure have reservations about.

Yes, I would also not like to depricate the :: syntax, but "varying" is an
SQL reserved word, as are all other words of multi word types, thus I see no
unsolveable problem here (disregard reserved words as alias unless AS is given).

Andreas



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Rob Butler
Дата:
Сообщение: Re: Are we losing momentum?
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: Backpatch FK changes to 7.3 and 7.2?