dbTalk Databases Forums  

'CHARACTER SET' specification in a column's data type ?

comp.databases.postgresql comp.databases.postgresql


Discuss 'CHARACTER SET' specification in a column's data type ? in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Timothy Madden
 
Posts: n/a

Default 'CHARACTER SET' specification in a column's data type ? - 04-19-2009 , 03:14 PM






Hello

I tried to create a table with some

CHARACTER VARYING(10480000) CHARACTER SET UTF8

column in PostgreSQL 8.3 (I have the latest version) and
whatever I try it would not work with the CHARACTER SET
specification in the column data type (UTF8, UTF-8, 'UTF8',
'UTF-8', "utf-8", etc...) . It complains about something
like unknown column varchar_utf8 in some system table.

I find this a little strange, if not hard to believe.

Is PostgreSQL really not supporting a character set
specification in a character column's data type or am I
missing somenthing ?

Is there more documentation about ISO compatibility for
PostgreSQL ? I mean about the support for ISO/IEC 9075:1999
(SQL3) in PostgreSQL ?

I know it's offtopic but does anyone know about some more
free DBMSs that I could install and try to see how much of the
SQL standard they support ?

Thank you,
Timothy Madden

Reply With Quote
  #2  
Old   
Thomas Kellerer
 
Posts: n/a

Default Re: 'CHARACTER SET' specification in a column's data type ? - 04-19-2009 , 03:48 PM






Timothy Madden wrote on 19.04.2009 22:14:
Quote:
Is PostgreSQL really not supporting a character set
specification in a character column's data type or am I
missing somenthing ?
No, you are not missing something. Postgres does not support this (which is
pretty obvious when looking at the manual btw)

Thomas


Reply With Quote
  #3  
Old   
Sibylle Koczian
 
Posts: n/a

Default Re: 'CHARACTER SET' specification in a column's data type ? - 04-20-2009 , 08:25 AM



Timothy Madden schrieb:
Quote:
Hello

I tried to create a table with some

CHARACTER VARYING(10480000) CHARACTER SET UTF8

column in PostgreSQL 8.3 (I have the latest version) and
whatever I try it would not work with the CHARACTER SET
specification in the column data type (UTF8, UTF-8, 'UTF8',
'UTF-8', "utf-8", etc...) . It complains about something
like unknown column varchar_utf8 in some system table.

I find this a little strange, if not hard to believe.

Is PostgreSQL really not supporting a character set
specification in a character column's data type or am I
missing somenthing ?

Is there more documentation about ISO compatibility for
PostgreSQL ? I mean about the support for ISO/IEC 9075:1999
(SQL3) in PostgreSQL ?

I know it's offtopic but does anyone know about some more
free DBMSs that I could install and try to see how much of the
SQL standard they support ?

There is Firebird, which definitely supports character set
specifications in column definitions, but, from the Firebird Book, p.
347: "Firebird's SQL language adheres closely to the SQL-92 standards
(ISO/IEC 9075:1992) at entry level. Firebird 1.5 introduced a number of
features in accordance with the more recently released SQL-99 standard.
Although Firebird SQL follows standards closely, there are small
differences."

There is MySQL, which certainly did not "follow standards closely" in
former versions. I don't know how far they have changed that.

There is OCELOT, which is on the CD-ROM of my (german) SQL textbook,
because it's said to be completely standard (? is that possible?), but I
don't know anything else about it and didn't try it.

I'm very certain there are more, probably much more.

HTH
Sibylle


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.