-postgresql 6.5.1 multi-byte (MB) support README 1999/7/11 \e$B:n@.\e(B
+PostgreSQL 7.0 multi-byte (MB) support README 2000/3/22 \e$B:n@.\e(B
\e$B@P0fC#IW\e(B
- t-ishii@sra.co.jp
+ ishii@postgresql.org
http://www.sra.co.jp/people/t-ishii/PostgreSQL/
-\e$B$O$8$a$K!'\e(B
+\e$B"#$O$8$a$K\e(B
PostgreSQL \e$B$K$*$1$k%^%k%A%P%$%H%5%]!<%H$O0J2<$N$h$&$JFCD'$r;}$C$F$$$^$9!#\e(B
- 1.\e$B%^%k%A%P%$%HJ8;z$H$7$F!"F|K\8l!"Cf9q8l$J$I$N3F9q$N\e(B EUC\e$B!"\e(BUnicode\e$B!"\e(B
- mule internal code, ISO-8859-* \e$B$,%G!<%?%Y!<%9:n@.;~$KA*Br2DG=!#\e(B
- \e$B%G!<%?%Y!<%9$K$O$3$N%3!<%I$N$^$^3JG<$5$l$^$9!#\e(B
- 2.\e$B%F!<%V%kL>$K%^%k%A%P%$%HJ8;z$,;HMQ2DG=\e(B(\e$B$?$@$7!"\e(BOS \e$B$,%^%k%A%P%$%H\e(B
- \e$B$N%U%!%$%kL>$r5v$7$F$$$k$3$H$,I,MW\e(B)
- 3.\e$B%+%i%`L>$K%^%k%A%P%$%HJ8;z$,;HMQ2DG=\e(B
- 4.\e$B%G!<%?$=$N$b$N$K$b%^%k%A%P%$%HJ8;z$,;HMQ2DG=\e(B
- 5.\e$B%^%k%A%P%$%HJ8;z$N@55,I=8=8!:w$,;HMQ2DG=\e(B
- 6.\e$B%^%k%A%P%$%HJ8;z$N\e(B LIKE \e$B8!:w$,;HMQ2DG=\e(B
- 7.character_length(), position(), substring() \e$B$G$N%^%k%A%P%$%H\e(B
- \e$B%5%]!<%H\e(B
- 8.\e$B4D6-JQ?t\e(B PGCLIENTENCODING \e$B$K$h$j!"%U%m%s%H%(%s%IB&$N%(%s%3!<%G%#%s%0\e(B
- \e$B$,%P%C%/%(%s%IB&$H0[$k>l9g$K!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9TL\\e(B
\e$B$3$H$rI=$7$^$9!#7h$7$F4A;z$dJ?2>L>$J$I\e(B "a" \e$B0J30$r$9$Y$FI=$9$o$1$G$O\e(B
\e$B$J$$$3$H$KCm0U$7$F2<$5$$!#\e(B
- \e$B%$%s%9%H!<%k$OIaDL$K9T$J$$$^$9!#%$%s%9%H!<%k$N>\:Y$O\e(B INSTALL \e$B$H$$$&\e(B
- \e$B%F%-%9%H%U%!%$%k$r8fMw2<$5$$!#$^$?!"\e(B
+ \e$B%$%s%9%H!<%k$O\e(B --enable-multibye \e$B$J$7$N>l9g$HF1MM$K9T$J$$$^$9!#%$%s\e(B
+ \e$B%9%H!<%k$N>\:Y$O\e(B INSTALL \e$B$H$$$&%F%-%9%H%U%!%$%k$r8fMw2<$5$$!#$^$?!"\e(B
http://www.sra.co.jp/people/t-ishii/PostgreSQL/ \e$B$G$b4JC1$J%$%s%9%H!<\e(B
\e$B%kJ}K!$r>R2p$7$F$$$^$9!#\e(B
-initdb/createdb/create database \e$B$K$*$1$k%(%s%3!<%G%#%s%0$N;XDj$K$D$$$F\e(B
+\e$B"#\e(Binitdb/createdb/create database \e$B$K$*$1$k%(%s%3!<%G%#%s%0$N;XDj$K$D$$$F\e(B
initdb \e$B$G$O0J2<$N%*%W%7%g%s$G%(%s%3!<%G%#%s%0$,;XDj$G$-$^$9!#\e(B
- -e \e$B%(%s%3!<%G%#%s%0\e(B
- -pgencoding \e$B%(%s%3!<%G%#%s%0\e(B
+ -E \e$B%(%s%3!<%G%#%s%0\e(B
+ --encoding=\e$B%(%s%3!<%G%#%s%0\e(B
\e$B$3$3$G;XDj$7$?%(%s%3!<%G%#%s%0$O!"0J8e\e(B createdb/create database \e$B$G%(\e(B
\e$B%s%3!<%G%#%s%0$r>JN,$7$?>l9g$K@_Dj$5$l$k%(%s%3!<%G%#%s%0$K$J$j$^$9!#\e(B
- -e \e$B$^$?$O\e(B -pgencoding \e$B%*%W%7%g%s$r>JN,$7$?>l9g$O!"\e(Bconfigure \e$B$G;XDj$7\e(B
+ -E \e$B$^$?$O\e(B --encoding \e$B%*%W%7%g%s$r>JN,$7$?>l9g$O!"\e(Bconfigure \e$B$G;XDj$7\e(B
\e$B$?%(%s%3!<%G%#%s%0$,:NMQ$5$l$^$9!#\e(B
createdb \e$B$G$O0J2<$N%*%W%7%g%s$G%(%s%3!<%G%#%s%0$,;XDj$G$-$^$9!#\e(B
-E \e$B%(%s%3!<%G%#%s%0\e(B
+ --encoding=\e$B%(%s%3!<%G%#%s%0\e(B
create database \e$B$G$O0J2<$N%*%W%7%g%s$G%(%s%3!<%G%#%s%0$,;XDj$G$-$^$9!#\e(B
CREATE DATABASE dbanme WITH LOCATION = 'path' ENCODING = '\e$B%(%s%3!<%G%#%s%0\e(B';
- createdb/create database \e$B$O!"%(%s%3!<%G%#%s%0;XDj$r>JN,$7$?>l9g$O!"\e(Binitdb
+ createdb/create database \e$B$G$O!"%(%s%3!<%G%#%s%0;XDj$r>JN,$7$?>l9g$O!"\e(Binitdb
\e$B$G;XDj$7$?%(%s%3!<%G%#%s%0$,:NMQ$5$l$^$9!#$3$l$O!"\e(Binitdb \e$B$,:n@.$9$k\e(B
\e$B%F%s%W%l!<%H%G!<%?%Y!<%9\e(B(template1)\e$B$N\e(B encoding \e$B%"%H%j%S%e!<%H$r7Q>5\e(B
\e$B$9$k$+$i$G$9!#\e(B
- \e$B%G!<%?%Y!<%9$N%(%s%3!<%G%#%s%0$O!"\e(Bpsql \e$B$N\e(B \l \e$B$d!"\e(BSQL \e$BJ8$N\e(B
- select * from pg_database \e$B$G;2>H$G$-$^$9!#\e(B
-
- datname |datdba|encoding|datpath
- -------------+------+--------+-------------
- template1 | 1739| 1|template1
- postgres | 1739| 0|postgres
- euc_jp | 1739| 1|euc_jp
- euc_kr | 1739| 3|euc_kr
- euc_cn | 1739| 2|euc_cn
- unicode | 1739| 5|unicode
- mule_internal| 1739| 6|mule_internal
-
- encoding \e$B%+%i%`$N?tCM$,$=$N%G!<%?%Y!<%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7PM3$7$F$$$k$?$a$G$9!#\e(B
+ \e$B%G!<%?%Y!<%9$N%(%s%3!<%G%#%s%0$O!"\e(Bpsql -l\e$B!"\e(Bpsql \e$B$N\e(B \l \e$B$G;2>H$G$-$^$9!#\e(B
+
+$ psql -l
+ List of databases
+ Database | Owner | Encoding
+---------------+---------+---------------
+ euc_cn | t-ishii | EUC_CN
+ euc_jp | t-ishii | EUC_JP
+ euc_kr | t-ishii | EUC_KR
+ euc_tw | t-ishii | EUC_TW
+ mule_internal | t-ishii | MULE_INTERNAL
+ regression | t-ishii | SQL_ASCII
+ template1 | t-ishii | EUC_JP
+ test | t-ishii | EUC_JP
+ unicode | t-ishii | UNICODE
+(9 rows)
+
+\e$B"#%U%m%s%H%(%s%I$H%P%C%/%(%s%I$N<+F0%(%s%3!<%G%#%s%0JQ49$K$D$$$F\e(B
+
+ \e$B%P%C%/%(%s%I\e(B(\e$B%G!<%?%Y!<%9\e(B)\e$B$H\e(B psql \e$B$J$I$N%U%m%s%H%(%s%I$N%(%s%3!<%G%#\e(B
+ \e$B%s%0$O0lCW$7$F$$$k$N$,86B'$G$9$,!"$$$/$D$+$N%(%s%3!<%G%#%s%0$K$D$$$F\e(B
+ \e$B$O%P%C%/%(%s%I$H%U%m%s%H%(%s%I$N4V$G0[$J$k$b$N$r;HMQ$9$k$3$H$,$G$-$^\e(B
+ \e$B$9!#$3$N>l9g!"<+F0E*$K%P%C%/%(%s%I$G%(%s%3!<%G%#%s%0JQ49$,9T$o$l$^$9!#\e(B
+
+ \e$B%P%C%/%(%s%I$N%(%s%3!<%G%#%s%0\e(B \e$B5vMF$5$l$k%U%m%s%H%(%s%I$N\e(B
+ \e$B%(%s%3!<%G%#%s%0\e(B
+ ----------------------------------------------------------------
+ EUC_JP EUC_JP, SJIS
+
+ EUC_TW EUC_TW, BIG5
+
+ LATIN2 LATIN2, WIN1250
+
+ LATIN5 LATIN5, WIN, ALT
+
+ MULE_INTERNAL EUC_JP, SJIS, EUC_KR, EUC_CN,
+ EUC_TW, BIG5, LATIN1\e$B$+$i\e(B5,
+ WIN, ALT, WIN1250
+
+ \e$B%P%C%/%(%s%I$H%U%m%s%H%(%s%I$N%(%s%3!<%G%#%s%0$,0[$J$k>l9g!"$=$N$3$H\e(B
+ \e$B$r%P%C%/%(%s%I$KEA$($kI,MW$,$"$j$^$9!#$=$N$?$a$NJ}K!$,$$$/$D$+$"$j$^\e(B
+ \e$B$9!#\e(B
+
+o psql \e$B$N\e(B \encoding \e$B%3%^%s%I$r;H$&J}K!\e(B
+
+ psql\e$B$G$O!"\e(B\encoding\e$B%3%^%s%I$r;H$C$FF0E*$K%U%m%s%H%(%s%IB&$NJ8;z%3!<\e(B
+ \e$B%I$r@ZBX$($k$3$H$,$G$-$^$9!#Nc\e(B:
+
+ \encoding SJIS
+
+o libpq \e$B$N4X?t\e(B PQsetClientEncoding \e$B$r;H$&J}K!\e(B
+
+ 7.0 \e$B$+$i?7$7$$\e(B libpq \e$B4X?t\e(B PQsetClientEncoding \e$B$,DI2C$5$l$F$$$^$9!#\e(B
+
+ PQsetClientEncoding(PGconn *conn, const char *encoding)
+
+ \e$B$3$N4X?t$r;H$($P!"%3%M%/%7%g%sKh$K%(%s%3!<%G%#%s%0$r@ZBX$($k$3$H$,$G\e(B
+ \e$B$-$^$9!#8=:_$N%(%s%3!<%G%#%s%0$NLd$$9g$o$;$O\e(B
+
+ int PQclientEncoding(const PGconn *conn)
- \e$B%U%m%s%H%(%s%IB&$N%(%s%3!<%G%#%s%0$N@_Dj$O!"\e(B"set client_encoding" \e$B%3\e(B
- \e$B%^%s%I$G$b2DG=$G$9!#$?$H$($P!"\e(B
+ \e$B$G$9!#\e(B
+
+o \e$B4D6-JQ?t\e(B PGCLIENTENCODING \e$B$r;H$&J}K!\e(B
+
+ \e$B>e5-J}K!$GBP1~$G$-$J$$>l9g!"$"$k$$$O%U%m%s%H%(%s%I$G;H$o$l$k%(%s%3!<\e(B
+ \e$B%G%#%s%0$,$"$i$+$8$aJ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$D$$$F;29M$K$J$k%I%-%e%a%s%H$,IUB0$7$F$$$k$N$G!"$3$3$KE:\e(B
- not tested properly
-------------------------------------------------------------------
+\e$B;29M\e(B2\e$B!'\e(BSJIS\e$B%f!<%6Dj5AJ8;z\e(B (UDC) \e$B$r$I$&07$&$+$H8@$&$3$H$K$D$$$FCf>r$5$s\e(B
+ (nak@email.com)\e$B$+$i$$$?$@$$$?LdBjDs5/$H2r@b$G$9!#\e(B
+
+-------------------------- \e$B0zMQ3+;O\e(B ----------------------------------
+---
+1. SJIS \e$B%3!<%I$NHO0O\e(B
+
+ 1 \e$B%P%$%HL\\e(B 0x81 - 0x9F\e$B!"\e(B0xE0 - 0xFC
+ 2 \e$B%P%$%HL\\e(B 0x40 - 0x7E\e$B!"\e(B0x80 - 0xFC
+
+ \e$B$$$o$f$k!V30;zNN0h!W$NHO0O\e(B:
+
+ - X0208 \e$B6&DL<+M3NN0h\e(B
+
+ |--------------------
+ | 85 \e$B6h\e(B 0xEB40 \e$B!A\e(B
+ |...
+ |--------------------
+ | 89 \e$B6h\e(B 0xED40 \e$B!A\e(B ; 89\e$B!A\e(B92 \e$B6h$O\e(B
+ |... ; \e$B!V\e(BNEC \e$BA*Dj\e(B IBM \e$B3HD%J8;zNN0h!W\e(B
+ |-------------------- ; \e$B$H8F$P$l$k\e(B
+ | 93 \e$B6h\e(B 0xEF40 \e$B!A\e(B
+ | 94 \e$B6h\e(B 0xEF9F \e$B!A\e(B 0xEFFC
+
+ - \e$B%f!<%6Dj5AJ8;zNN0h\e(B
+
+ |--------------------
+ | 95 \e$B6h\e(B 0xF040 \e$B!A\e(B ; 95\e$B!A\e(B104 \e$B6h\e(B
+ |... ; \e$B!V%f!<%6Dj5AJ8;zNN0h\e(B A\e$B!W\e(B(\e$B2>>N\e(B)
+ |--------------------
+ |105 \e$B6h\e(B 0xF540 \e$B!A\e(B ; 105\e$B!A\e(B114 \e$B6h\e(B
+ |... ; \e$B!V%f!<%6Dj5AJ8;zNN0h\e(B B\e$B!W\e(B(\e$B2>>N\e(B)
+ |--------------------
+ |115 \e$B6h\e(B 0xFA40 \e$B!A\e(B ; 115\e$B!A\e(B120 \e$B6h$O0lHL$K\e(B
+ |... ; \e$B!V\e(BIBM \e$B3HD%J8;zNN0h!W\e(B
+ |120 \e$B6h\e(B ... ; \e$B$H8F$P$l$k\e(B
+ |--------------------
+
+---
+2. i-mode \e$BC<Kv$,;H$C$F$$$k?^7AJ8;z%3!<%I$NHO0O\e(B
+
+ 0xF89F - 0xF8FC (112 \e$B6h\e(B)
+ 0xF940 - 0xF949 (113 \e$B6h\e(B)
+ 0xF972 - 0xF97E (113 \e$B6h\e(B)
+ 0xF980 - 0xF990 (113 \e$B6h\e(B)
+ 0xF9B0 (114 \e$B6h\e(B)
+
+---
+3. \e$B0lHLE*$J\e(B EUC \e$BF|K\8l%3!<%I$NDj5A\e(B
+
+ G0 : [0x21-0x7E] ; \e$B$$$o$f$k\e(B JIS ROMAN
+ G1 : [0xA1-0xFE] [0xA1-0xFE] ; JIS X 0208
+ G2 : 0x8E [0xA1-0xDF] ; JIS X 0201 \e$B%+%J\e(B
+ G3 : 0x8F [0xA1-0xFE] [0x21-0x7E] ; JIS X 0212 \e$BJd=u4A;z\e(B
+
+---
+[\e$BLdBjE@\e(B]
+
+SJIS 95\e$B!A\e(B120 \e$B6h$O\e(B JIS X0208 \e$B$K3:Ev$9$kNN0h$,B8:_$7$J$$\e(B
+\e$B$?$a!"$3$NNN0h$N\e(B EUC - SJIS \e$BJ8;z%3!<%IJQ49$O3F%Y%s%@$K\e(B
+\e$B$h$C$F0[$J$k$N$G$O$J$$$+!"$H$$$&$N$,@P0fMM$+$i$N$4;XE&\e(B
+\e$B$G$7$?!#\e(B
+
+---
+[\e$B5DO@\e(B]
+
+\e$BD4::$N7k2L!"\e(BSJIS 95\e$B!A\e(B120 \e$B6h$r\e(B EUC \e$B$KJQ49$9$k$?$a$NI8=`E*$J\e(B
+\e$B%k!<%k$,$J$$$o$1$G$O$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 http://docs.sun.com/ab2/coll.139.3/JFPUG/@Ab2PageView/11683?Ab2Lang=ja&Ab2Enc=euc-jp
+
+-\e$B!VF|K\8lJ8;z%3!<%I!W\e(B
+ Solaris 7\e$B!"\e(BJFP \e$B%f!<%6!<%:%,%$%I\e(B
+ http://docs.sun.com/ab2/coll.139.3/JFPUG/@Ab2PageView/879;td=5?Ab2Lang=ja&Ab2Enc=euc-jp
+
+ // \e$BFf$N!V\e(B1\e$B!A\e(B20 \e$B6h!W$N5-=R$O$3$3$+$i$-$F$$$^$9!#\e(B
+
+---
+-------------------------- \e$B0zMQ$3$3$^$G\e(B ---------------------------------
\e$B2~DjMzNr!'\e(B
+ 2000/3/22
+ * PQsetClientEncoding, PQclientEncoding \e$B$r\e(Blibpq \e$B4X?t$KDI2C!"\e(B
+ \e$B%3%M%/%7%g%sKh$K%(%s%3!<%G%#%s%0$rJQ992DG=$K!#\e(B
+ * SJIS \e$B%f!<%6Dj5AJ8;z\e(B (UDC) \e$B$X$NBP1~\e(B
+ * ./configure --with-mb=EUC_JP \e$B$+$i\e(B
+ ./configure --enable-multibyte=EUC_JP \e$B$KJQ99\e(B
+ * SQL_ASCII \e$B$N\e(B regression test \e$BDI2C\e(B
+ * \e$B$3$l$i$O\e(B 7.0 \e$B$KH?1G$5$l$^$9!#\e(B
+
1999/7/11 WIN1250(Windows\e$BMQ$N%A%'%38l\e(B)\e$B%5%]!<%H$rDI2C$7$^$7$?!#\e(B
* WIN1250 \e$B$,%U%m%s%H%(%s%IB&$N%(%s%3!<%G%#%s%0$H$7$FMxMQ$G$-$k$h\e(B
\e$B$&$K$J$j$^$7$?!#$3$N>l9g!"%P%C%/%(%s%IB&$N%(%s%3!<%G%#%s%0$O\e(B