Potential bug - Mailing list pgsql-bugs

From James Vinett
Subject Potential bug
Date
Msg-id 1019101392.875.54.camel@james.imdstrading.com
Whole thread Raw
Responses Re: Potential bug  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
To whom it may concern:

I tried to create a new table with the following statement:

    CREATE TABLE
        "bit" (
        provider_name varchar
        );



I got the error message:

ERROR:  TypeCreate: type bit already defined



According to your documentation 'PosetgreSQL 7.1 User's Guide' on page 2
it states:

A delimited identifier (or qouted identifier) is always an identifier,
never a key word. So "select" could be used to refer to a column or
table named select, whereas an unquoted select would be taken as a key
word and would therefore provoke a paser error when used where a table
or column name is expected.

It then goes further to state in 'PostgreSQL 7.1 Reference Manual' on
page 54 the syntax for CREATE TABLE:


CREATE [ TEMPORARY | TEMP ] TABLE table (
    column type
[ NULL | NOT NULL ] [ UNIQUE ] [ DEFAULT value ]
    [column_constraint_clause | PRIMARY KEY } [ ... ] ]
    [, ... ]
    [, PRIMARY KEY ( column [, ...] ) ]
    [, CHECK ( condition ) ]
    [, table_constraint_clause ]
    ) [ INHERITS ( inherited_table [, ...] ) ]


Is this exception that is being thrown correct?  If so you should state
that 'types' are excluded from the 'qouted identifier' rule.   Futher
more the exception makes it sound like I'm trying to CREATE TYPE, which
i am not.

james vinett

pgsql-bugs by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: postgresql odbc bug
Next
From: Heilkrauter@aol.com
Date:
Subject: Upgrade to 7.1.3