pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Radu-Adrian Popescu <radu.popescu@aldratech.com>
To: Felipe Nievinski <fnievinski@terra.com.br>
Cc: psql <pgsql-sql@postgresql.org>
Subject: Re: table name - TypeCreate error
Date: 24 Jan 2002 15:37:43 +0200
Message-ID: <1011879463.3343.51.camel@rpopescu> (raw)
In-Reply-To: <GQG2E2$IU_ZNmw5Dgafi3cqvSzdlXfmVYPxmOdR6Yi5@terra.com.br>
References: <GQG2E2$IU_ZNmw5Dgafi3cqvSzdlXfmVYPxmOdR6Yi5@terra.com.br>

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




view thread (3+ messages)  latest in thread

Message-ID: <1011879463.3343.51.camel@rpopescu>
Permalink:  ../1011879463.3343.51.camel@rpopescu/
Also on:    postgresql.org/message-id/1011879463.3343.51.camel@rpopescu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: radu.popescu@aldratech.com, fnievinski@terra.com.br
  Subject: Re: table name - TypeCreate error
  In-Reply-To: <1011879463.3343.51.camel@rpopescu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox