私はpostgreSQL 9.1を使用しています
データベースの Collation と Character Type を Greek_Greece.1253 に設定しましたが、これを utf8 に変更したいと考えています。
照合順序を変更するには、これを使用する必要がありますよね?
しかし、どうすれば文字タイプを変更できますか?
ありがとう
編集
私は utf8 の代わりに C を書くことを勧めます。照合順序と文字タイプを C に変更したい
私はpostgreSQL 9.1を使用しています
データベースの Collation と Character Type を Greek_Greece.1253 に設定しましたが、これを utf8 に変更したいと考えています。
照合順序を変更するには、これを使用する必要がありますよね?
しかし、どうすれば文字タイプを変更できますか?
ありがとう
編集
私は utf8 の代わりに C を書くことを勧めます。照合順序と文字タイプを C に変更したい
You cannot change default collation of an existing database. You need to CREATE DATABASE
with the collation you need and then dump/restore your schema and data into it.
If you do not want to recreate the database - you can specify collation for every text collumn in your db.
Here is detailed postgres manual on collations: Collation Support
.
First line of this manual page states:
LC_COLLATE and LC_CTYPE settings of a database cannot be changed after its creation.