2

私はpostgreSQL 9.1を使用しています

データベースの Collat​​ion と Character Type を Greek_Greece.1253 に設定しましたが、これを utf8 に変更したいと考えています。

照合順序を変更するには、これを使用する必要がありますよね?

しかし、どうすれば文字タイプを変更できますか?

ありがとう

編集

私は utf8 の代わりに C を書くことを勧めます。照合順序と文字タイプを C に変更したい

4

1 に答える 1

2

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.

CREATE DATABASE, pg_dump, pg_restore

于 2013-09-24T18:43:32.440 に答える