Hungarian collation in English Windows server

Started by Durumdaraover 7 years ago4 messagesgeneral
Jump to latest
#1Durumdara
durumdara@gmail.com

Dear Members!

One of the customer preinstalled a 9.6 PGSQL server for us.

Today we tried to create and migrate our database.

CREATE DATABASE yyy
WITH
OWNER = xxx
ENCODING = 'UTF8'
* LC_COLLATE = 'Hungarian_Hungary.1250' <----*
* LC_CTYPE = 'Hungarian_Hungary.1250' <----*

But we got error that collation doesn't exists in English Windows server.

How to we add this collation in english server?

What we can do now?

This is a problematic/unpleasant situation because they wait for us, but we
didn't use only Hungarian servers where this collation is default.

Thank you for your help!

Regards
dd

#2Laurenz Albe
laurenz.albe@cybertec.at
In reply to: Durumdara (#1)
Re: Hungarian collation in English Windows server

Durumdara wrote:

CREATE DATABASE yyy
WITH
OWNER = xxx
ENCODING = 'UTF8'
LC_COLLATE = 'Hungarian_Hungary.1250' <----
LC_CTYPE = 'Hungarian_Hungary.1250' <----

But we got error that collation doesn't exists in English Windows server.

You have to install the collation on the Windows maching, not in PostgreSQL.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

#3Durumdara
durumdara@gmail.com
In reply to: Laurenz Albe (#2)
Re: Hungarian collation in English Windows server

Dear Laurenz!

You have to install the collation on the Windows maching, not in

PostgreSQL.

We could add languages. As I remember my coll. told me that Hungarian lang.
pack is installed in that machine.
But maybe this is different thing.

What we need to do to PGSQL see that collation? Would you or other member
decribe the steps, please?

Very-very thank you!

dd

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Durumdara (#3)
Re: Hungarian collation in English Windows server

Durumdara <durumdara@gmail.com> writes:

Dear Laurenz!

You have to install the collation on the Windows maching, not in
PostgreSQL.

We could add languages. As I remember my coll. told me that Hungarian lang.
pack is installed in that machine.
But maybe this is different thing.
What we need to do to PGSQL see that collation? Would you or other member
decribe the steps, please?

Did you add the language pack after PG was already installed? If so,
you could re-initdb, or if that's inconvenient maybe you could run
pg_import_system_collations().

regards, tom lane