Syntax error and reserved keywords

From: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
To: PostgreSQL-Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Syntax error and reserved keywords
Date: 2012-03-14 13:58:31
Message-ID: 87haxre12w.fsf@hi-media-techno.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

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?

Regards,
--
Dimitri Fontaine
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Euler Taveira 2012-03-14 14:20:05 VALID UNTIL
Previous Message Robert Haas 2012-03-14 12:56:26 Re: Command Triggers, patch v11