[pgcluster: 986] Re: 既存の Postgresql から PGCluster= ?ISO-2022-JP?B?GyRCJFgkTjBcOVRKfUshGyhC?=

a.mitani @ sra-europe.com a.mitani @ sra-europe.com
2007年 6月 14日 (木) 00:50:00 JST


塚本さん,

PostgreSQL8.2.4で作成したDBに日本語のテーブルを作成し,日本語をINSERTしまし
た.
そこにPGCluster-1.7.0rc7をインストールしてpgreplicate.confとcluster.confを追
加して起動してみました.

結果は以下のとおり,文字化けせずに読むことができました.


[mitani @ did2 pgcluster-1.7.0rc7]$ psql test
Welcome to psql 8.2.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

test=# \dt
        List of relations
 Schema |  Name  | Type  | Owner
--------+--------+-------+--------
 public | テスト | table | mitani
(1 row)

test=# select * from テスト;
 name
------
 名前
(1 row)

test=# \q
[mitani @ did2 pgcluster-1.7.0rc7]$ env | grep LANG
LANG=ja_JP.UTF-8

ついでにデータ追加もしてみましたが,問題なく出来るようです.

test=# insert into テスト values ('名前2');
INSERT 0 1
test=# select * from テスト;
  name
--------
 名前
 名前2
(2 rows)

test=#


直にpsqlコマンドで試されたと思うのですが,コンソールからされたのですか?
それとも別の端末からですか?

三谷



pgcluster メーリングリストの案内