Re: BUG #18196: Databases Created in Turkish Language Will Not Run on the Latest Version of Windows

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, halilhanbadem(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18196: Databases Created in Turkish Language Will Not Run on the Latest Version of Windows
Date: 2023-11-15 22:54:12
Message-ID: CA+hUKGL0YzsmBaE564bw+4dKCcA=TbzuKdLh=bwArW3P61Z=+Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Nov 16, 2023 at 7:26 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> writes:
> > On Wed, 2023-11-15 at 09:04 +0000, PG Bug reporting form wrote:
> >> [ Microsoft decided to rename their Turkish locales ]
>
> > 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.
>
> Yeah, that's a mess. The postgresql.conf entries could be fixed by hand,
> but if you've got "Turkish_Turkey.1254" in pg_database.datcollate or
> datctype then there's no easy way around that.
>
> I think really the right fix is a whole bunch of WTFs directed at
> Microsoft. I can understand wanting to support the Turkish_Türkiye
> spelling, but not having a backward-compatibility entry for the old
> spelling is a colossal blunder -- especially in a minor OS release.
> Aren't these the same people who prize backward compatibility at
> any cost?

For the record, the Windows manual tells us very, very clearly not to
store those "display" style names anywhere, and to use BCP 47 locale
names instead, which are based on ISO standards. I had patches to
teach initdb to use BCP 47, and I remain convinced that we must do
that, but I have failed to attract the attention of enough people who
use and understand Windows to be able to commit anything. In
particular, Juan José pointed out some problems that I just couldn't
understand.

https://www.postgresql.org/message-id/flat/CA%2BhUKGJ%3DXThErgAQRoqfCy1bKPxXVuF0%3D2zDbB%2BSxDs59pv7Fw%40mail.gmail.com

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2023-11-16 09:27:03 BUG #18201: POSTGRESQL 16 - Failed to initialise the database cluster with initdb
Previous Message Dean Rasheed 2023-11-15 22:41:01 Re: BUG #18200: Undefined behaviour in interval_div