I have these collations:
postgres=# select * from pg_collation; collname | collnamespace | collowner | collencoding | collcollate | collctype ------------+---------------+-----------+--------------+-------------+----------- default | 11 | 10 | -1 | | C | 11 | 10 | -1 | C | C POSIX | 11 | 10 | -1 | POSIX | POSIX en_US | 11 | 10 | 6 | en_US.utf8 | en_US.utf8 en_US.utf8 | 11 | 10 | 6 | en_US.utf8 | en_US.utf8 ucs_basic | 11 | 10 | 6 | C | C (6 rows)
I installed a new locale on my system and I'd like to use it on postgres. It seems that the only way to install a new collate is using the initdb
command, but it requires to make a pg_dumpall
, delete the postgres data directory, run initdb
and restore all the data from the dump. Isn't there an easier solution?