Re: Why does this not work? (keyword 'TEXT') - Mailing list pgsql-general

From Tom Lane
Subject Re: Why does this not work? (keyword 'TEXT')
Date
Msg-id 16263.1018385596@sss.pgh.pa.us
Whole thread Raw
In response to Why does this not work? (keyword 'TEXT')  ("Johann Zuschlag" <zuschlag@online.de>)
Responses Re: Why does this not work? (keyword 'TEXT')  ("Johann Zuschlag" <zuschlag@online.de>)
List pgsql-general
"Johann Zuschlag" <zuschlag@online.de> writes:
> If I look thru the keywords table, I don't find 'TEXT', but:

That's because it's not a keyword.

> all-test=# create table text (textid varchar(10));
> ERROR:  type named text already exists

Every table has an associated datatype of the same name (to wit,
its row type).  So there's a naming conflict when the system tries
to create the row type for your table.

            regards, tom lane

pgsql-general by date:

Previous
From: Jan Wieck
Date:
Subject: Re: more about pg_toast growth
Next
From: Stephan Szabo
Date:
Subject: Re: table alias nor valid for delete