Re: Syntax error and reserved keywords

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Syntax error and reserved keywords
Дата
Msg-id 1331757050.22638.0.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Syntax error and reserved keywords  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Ответы Re: Syntax error and reserved keywords
Список pgsql-hackers
On ons, 2012-03-14 at 14:58 +0100, Dimitri Fontaine wrote:
> A colleague came to me to express his surprise about this quite simple
> use case:
> 
>   =# alter table toto add column user text;
>   ERROR:  syntax error at or near "user"
>   LINE 1: alter table toto add column user text;
> 
> Is there a reason for us not to add an HINT: "user" is a reserved
> keyword or something like that, other than nobody having been interested
> in doing the work?

If that were easily possible, we could just recognize 'user' as an
identifier in this context and avoid the issue altogether.  But it's
not.



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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Faster compression, again
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: CREATE FOREGIN TABLE LACUNA