Re: Field add error - Mailing list pgsql-bugs

From Richard Huxton
Subject Re: Field add error
Date
Msg-id 42C91128.4090500@archonet.com
Whole thread Raw
In response to Field add error  ("Jozsef Aron" <jaron@ar.hu>)
List pgsql-bugs
Jozsef Aron wrote:
>
> CREATE TABLE X.tabla (
> razon bigserial,
> 2e00 varchar(11),
> AS varchar(5)
> ...
> ..
> .
> PRIMARY KEY (razon)
> ) WITHOUT OIDS;
>
> Fields name is not ok., denied : 'AS','1e00','2e00'

I believe this is normal as regards identifier names. The word "AS" is
probably reserved (sorry, haven't checked) and I don't think you can
start an identifier with a number.

So - if you want to use these names you must quote them:
   CREATE TABLE zzz1 ("2e00" int4);

If you would like to discuss this further, subscribe to the
pgsql-general mailing list where there are lots of people who can help you.

--
   Richard Huxton
   Archonet Ltd

pgsql-bugs by date:

Previous
From: "Jozsef Aron"
Date:
Subject: Field add error
Next
From: Szűcs Gábor
Date:
Subject: Re: Select on pkey returned more than one row