how can i change the "character type" of a database in postgresql? -


i'm using postgresql 9.1

i've set collation , character type of database greek_greece.1253 , want change utf8

to change collation should use this, right?

but how can change character type?

thanks

edit

i ment wright c instead of utf8. change collation , character type c

you cannot change default collation of existing database. need create database collation need , dump/restore schema , data it.

if not want recreate database - can specify collation every text collumn in db.

here detailed postgres manual on collations: collation support.

first line of manual page states:

lc_collate , lc_ctype settings of database cannot changed after creation.

create database, pg_dump, pg_restore


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -