pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Thomas Munro <thomas.munro@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: halilhanbadem@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18196: Databases Created in Turkish Language Will Not Run on the Latest Version of Windows
Date: Mon, 20 Nov 2023 10:54:45 +0100
Message-ID: <c7cc629dcf6b639660d755cb1fc51be4f19611b6.camel@cybertec.at> (raw)
In-Reply-To: <CA+hUKGL0YzsmBaE564bw+4dKCcA=TbzuKdLh=bwArW3P61Z=+Q@mail.gmail.com>
References: <18196-b10f93dfbde3d7db@postgresql.org>
	<f41b857b00c92254e55a0e3486d76ad7ae1bde18.camel@cybertec.at>
	<2694195.1700072765@sss.pgh.pa.us>
	<CA+hUKGL0YzsmBaE564bw+4dKCcA=TbzuKdLh=bwArW3P61Z=+Q@mail.gmail.com>

On Thu, 2023-11-16 at 11:54 +1300, Thomas Munro wrote:
> On Thu, Nov 16, 2023 at 7:26 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > Laurenz Albe <laurenz.albe@cybertec.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%2BSxDs59pv7...

I don't have Windows to test, but wouldn't the problem be avoided if
people created their cluster with "--locale=tr-TR"?  If yes, EDB's
Windows installer should be modified to use the correct locale names.
Is anybody from EDB reading this?

Yours,
Laurenz Albe





view thread (21+ messages)  latest in thread

Message-ID: <c7cc629dcf6b639660d755cb1fc51be4f19611b6.camel@cybertec.at>
Permalink:  ../c7cc629dcf6b639660d755cb1fc51be4f19611b6.camel@cybertec.at/
Also on:    postgresql.org/message-id/c7cc629dcf6b639660d755cb1fc51be4f19611b6.camel@cybertec.at

 · 

reply

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, thomas.munro@gmail.com, tgl@sss.pgh.pa.us, halilhanbadem@gmail.com
  Subject: Re: BUG #18196: Databases Created in Turkish Language Will Not Run on the Latest Version of Windows
  In-Reply-To: <c7cc629dcf6b639660d755cb1fc51be4f19611b6.camel@cybertec.at>
  References: <18196-b10f93dfbde3d7db@postgresql.org> <f41b857b00c92254e55a0e3486d76ad7ae1bde18.camel@cybertec.at> <2694195.1700072765@sss.pgh.pa.us> <CA+hUKGL0YzsmBaE564bw+4dKCcA=TbzuKdLh=bwArW3P61Z=+Q@mail.gmail.com> <c7cc629dcf6b639660d755cb1fc51be4f19611b6.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