Re: table name - TypeCreate error - Mailing list pgsql-sql

From Radu-Adrian Popescu
Subject Re: table name - TypeCreate error
Date
Msg-id 1011879463.3343.51.camel@rpopescu
Whole thread Raw
In response to table name - TypeCreate error  ("Felipe Nievinski" <fnievinski@terra.com.br>)
List pgsql-sql
On Thu, 2002-01-24 at 15:20, Felipe Nievinski wrote:
> Hi.
> 
> Please, I would like to know why I can't create a table with a name 
> equal of a type name.
> 
> For example, when a try this:
>     CREATE TABLE time (id int);
> I get the following error message:
>     ERROR:  TypeCreate: type time already defined
> 
> I would expect to be able to create a table with any name different 
> than others tables' name.
> 
> Thank you in advance,
> Felipe.
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

teamsheet=# CREATE TABLE "time" (id int);
ERROR:  type named time already exists
teamsheet=# CREATE TABLE "Time" (id int);
CREATE

:-)

-- 



Radu-Adrian Popescu
CSA, DBA, Programmer



pgsql-sql by date:

Previous
From: "Felipe Nievinski"
Date:
Subject: table name - TypeCreate error
Next
From: Tom Lane
Date:
Subject: Re: table name - TypeCreate error