From: Laurenz Albe <laurenz.albe@cybertec.at>
To: halilhanbadem@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18196: Databases Created in Turkish Language Will Not Run on the Latest Version of Windows
Date: Wed, 15 Nov 2023 18:48:47 +0100
Message-ID: <f41b857b00c92254e55a0e3486d76ad7ae1bde18.camel@cybertec.at> (raw)
In-Reply-To: <18196-b10f93dfbde3d7db@postgresql.org>
References: <18196-b10f93dfbde3d7db@postgresql.org>
On Wed, 2023-11-15 at 09:04 +0000, PG Bug reporting form wrote:
> Operating system: Windows 11 22H2 22621.2715
>
> This morning, I noticed that my computer at the office and my computer at
> home had received automatic updates. Subsequently, I received reports of
> some errors. Upon investigation, I found that the PostgreSQL service was not
> running, and the error indicated that it was due to a problem in the
> postgresql.conf file. After extensive research, I discovered that in the
> Windows 11 22H2 22621.2715 update, the term "Turkey" had been changed to
> "Türkiye." As a result, Turkish_Turkey.1254 is no longer present in the
> operating system. Instead of Turkish_Turkey.1254, the Windows system now
> uses Turkish_Türkiye.1254.
>
> Databases created with Turkish_Turkey.1254 cannot find the corresponding
> locale, resulting in errors and service disruptions. After a fresh
> installation, I observed the following expressions in the postgresql.conf
> file.
>
> # These settings are initialized by initdb, but they can be changed.
> lc_messages = 'Turkish_Türkiye.1254' # locale for system error message
> # strings
> lc_monetary = 'Turkish_Türkiye.1254' # locale for monetary formatting
> lc_numeric = 'Turkish_Türkiye.1254' # locale for number formatting
> lc_time = 'Turkish_Türkiye.1254' # locale for time formatting
>
> Therefore, there is a conflict, and I request your assistance in addressing
> this matter.
This has been reported before [1], but your report explains the problem clearly.
Can you show the exact error message?
This seems to be a really nasty problem that Microsoft has created for us.
Even if the server started, you could not connect to the database if the
collation persisted in pg_database is no longer accepted by the operating
system.
I cannot think of a possible solution except a hard-coded hack specifically
for Turkish locale names...
Yours,
Laurenz Albe
[1]: https://postgr.es/m/18181-fa5143d18a467fe5%40postgresql.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: laurenz.albe@cybertec.at, halilhanbadem@gmail.com
Subject: Re: BUG #18196: Databases Created in Turkish Language Will Not Run on the Latest Version of Windows
In-Reply-To: <f41b857b00c92254e55a0e3486d76ad7ae1bde18.camel@cybertec.at>
References: <18196-b10f93dfbde3d7db@postgresql.org> <f41b857b00c92254e55a0e3486d76ad7ae1bde18.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox