Unix Technical Forum

=?UTF-8?Q?Re:_[hackers-jp:_219]_Re:_postgresql-8.1.4=E6=96=87?==?UTF-8?Q?=E5=AD=97=E3=82=BB=E3=83=83=E3=83=88=E3=82=B5= E3=83=9D?==?UTF-8?Q?=E3=83=BC=E3=83=88?=

This is a discussion on =?UTF-8?Q?Re:_[hackers-jp:_219]_Re:_postgresql-8.1.4=E6=96=87?==?UTF-8?Q?=E5=AD=97=E3=82=BB=E3=83=83=E3=83=88=E3=82=B5= E3=83=9D?==?UTF-8?Q?=E3=83=BC=E3=83=88?= within the pgsql Hackers forums, part of the PostgreSQL category; --> On Jul 28, 2006, at 12:37 , ISHIDA Akio wrote: > | SJIS $B%5!<%P$NId9f2=J}<0$H$7$F$O%5%]!<%H$7$F$$$^$;$s!#(B Just to confirm, it does ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 03:44 AM
Michael Glaesemann
 
Posts: n/a
Default =?UTF-8?Q?Re:_[hackers-jp:_219]_Re:_postgresql-8.1.4=E6=96=87?==?UTF-8?Q?=E5=AD=97=E3=82=BB=E3=83=83=E3=83=88=E3=82=B5= E3=83=9D?==?UTF-8?Q?=E3=83=BC=E3=83=88?=


On Jul 28, 2006, at 12:37 , ISHIDA Akio wrote:

> | SJIS $B%5!<%P$NId9f2=J}<0$H$7$F$O%5%]!<%H$7$F$$$^$;$s!#(B


Just to confirm, it does look like there's a discrepancy between what
is in the documentation and the actual behavior of the server. The
documentation indicates that SJIS is a valid server encoding:

http://www.postgresql.org/docs/current/interactive/
multibyte.html#MULTIBYTE-CHARSET-SUPPORTED

I just tried to create a database with SJIS encoding using the
various aliases listed and was unable to do so:

grzm$ createdb shift_jis --encoding SJIS
createdb: database creation failed: ERROR: SJIS is not a valid
encoding name
grzm$ createdb shift_jis --encoding SHIFT_JIS
createdb: database creation failed: ERROR: SHIFT_JIS is not a valid
encoding name
grzm$ createdb shift_jis --encoding Mskanji
createdb: database creation failed: ERROR: Mskanji is not a valid
encoding name
grzm$ createdb shift_jis --encoding WIN932
createdb: database creation failed: ERROR: WIN932 is not a valid
encoding name
grzm$ createdb shift_jis --encoding Windows932
createdb: database creation failed: ERROR: Windows932 is not a valid
encoding name
grzm$ psql postgres
Welcome to psql 8.1.4, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

postgres=# select version();

version
------------------------------------------------------------------------
----------------------------------------------------------------------
PostgreSQL 8.1.4 on powerpc-apple-darwin8.6.0, compiled by GCC
powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.
build 5341)
(1 row)

postgres=# create database shift_jis with encoding 'SHIFT_JIS';
ERROR: SHIFT_JIS is not a valid encoding name
postgres=# create database shift_jis with encoding 'SJIS';
ERROR: SJIS is not a valid encoding name

Michael Glaesemann
grzm seespotcode net




---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-12-2008, 03:44 AM
Tom Lane
 
Posts: n/a
Default Re: =?UTF-8?Q?Re:_[hackers-jp:_219]_Re:_postgresql-8.1.4=E6=96=87?= =?UTF-8?Q?=E5=AD=97=E3=82=BB=E3=83=83=E3=83=88=E3=82=B5= E3=83=9D?= =?UTF-8?Q?=E3=83=BC=E3=83=88?=

I wrote:
> Michael Glaesemann <grzm@seespotcode.net> writes:
>> Just to confirm, it does look like there's a discrepancy between what
>> is in the documentation and the actual behavior of the server. The
>> documentation indicates that SJIS is a valid server encoding:


> This is a documentation error --- SJIS is certainly not a valid server
> encoding (it's not 8-bit-safe). Will fix --- thanks for pointing it out.


Actually, table 21-2 does say that SJIS isn't supported as a server
encoding, but the text at the top of the page (before table 21-1) is
pretty misleading --- it implies that every character set we have
is allowed as a server-side encoding. I'm going to change that text,
and also add a column to table 21-1 marking the supported server
encodings.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-12-2008, 03:45 AM
Michael Glaesemann
 
Posts: n/a
Default =?UTF-8?Q?Re:__Re:_[hackers-jp:_219]_Re:_postgresql-8.1?==?UTF-8?Q?.4=E6=96=87=E5=AD=97=E3=82=BB=E3=83=83=E3=83=8 8?==?UTF-8?Q?=E3=82=B5=E3=83=9D=E3=83=BC=E3=83=88_?=


On Jul 29, 2006, at 0:20 , Tom Lane wrote:

> I'm going to change that text,
> and also add a column to table 21-1 marking the supported server
> encodings.


Thanks, Tom.

Michael Glaesemann
grzm seespotcode net




---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-12-2008, 03:45 AM
Tom Lane
 
Posts: n/a
Default Re: =?UTF-8?Q?Re:_[hackers-jp:_219]_Re:_postgresql-8.1.4=E6=96=87?= =?UTF-8?Q?=E5=AD=97=E3=82=BB=E3=83=83=E3=83=88=E3=82=B5= E3=83=9D?= =?UTF-8?Q?=E3=83=BC=E3=83=88?=

Michael Glaesemann <grzm@seespotcode.net> writes:
> Just to confirm, it does look like there's a discrepancy between what
> is in the documentation and the actual behavior of the server. The
> documentation indicates that SJIS is a valid server encoding:


This is a documentation error --- SJIS is certainly not a valid server
encoding (it's not 8-bit-safe). Will fix --- thanks for pointing it out.

> createdb: database creation failed: ERROR: SJIS is not a valid
> encoding name


I wonder if it would be worth changing the code so that you get a
complaint saying the encoding is known but not allowed on the server
side. It hasn't come up before, so maybe it's not worth the trouble
.... but this message seems a bit confusing.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:40 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com