pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Tomas Pospisek <tpo2@sourcepole.ch>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: ERROR: new collation (en_US.UTF-8) is incompatible with the collation of the template database (en_US.utf-8)
Date: Fri, 24 Jun 2022 10:36:28 -0400
Message-ID: <354889.1656081388@sss.pgh.pa.us> (raw)
In-Reply-To: <1c22da3e-1b18-39b8-cecb-26777dc683f0@enterprisedb.com>
References: <fedc0205-c15b-e400-aa3f-e1d2a1285ddb@sourcepole.ch>
<8c998edf-82a1-0769-77d7-7ef5076c098c@aklaver.com>
<dca61c7b-a5e2-1269-3440-7a89a86186e1@sourcepole.ch>
<06131c03-5dd1-a8e1-37ea-65014470c22e@sourcepole.ch>
<3370e253-1928-294a-facb-e9850bfefa90@aklaver.com>
<589f2863-f7a8-3519-533a-f5751513823b@aklaver.com>
<1c22da3e-1b18-39b8-cecb-26777dc683f0@enterprisedb.com>
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> There are also cases where on one system the locale is spelled
> xx_YY.UTF8 and on another xx_YY.UTF-8. If we start adjusting for case,
> should we adjust for this as well? What other cases are there?
> So this would need a bit more research.
Yeah. I would tend to define it as "if the locale names both end
in dot followed by a recognizable encoding name, then (a) make
sure that the encoding values are the same, then (b) strip off
the dot and encoding before comparing the rest". We already have
code to look up encoding names, and it handles all these variants.
So this doesn't seem like it should take much new code, though
maybe some refactoring would be needed to make the lookup code
available where this check is happening.
I'm not personally very excited about this, but if someone wanted
to prepare a patch...
regards, tom lane
view thread (10+ messages)
Message-ID: <354889.1656081388@sss.pgh.pa.us> Permalink: ../354889.1656081388@sss.pgh.pa.us/ Also on: postgresql.org/message-id/354889.1656081388@sss.pgh.pa.us ·
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-general@postgresql.org Cc: tgl@sss.pgh.pa.us, peter.eisentraut@enterprisedb.com, adrian.klaver@aklaver.com, tpo2@sourcepole.ch Subject: Re: ERROR: new collation (en_US.UTF-8) is incompatible with the collation of the template database (en_US.utf-8) In-Reply-To: <354889.1656081388@sss.pgh.pa.us> References: <fedc0205-c15b-e400-aa3f-e1d2a1285ddb@sourcepole.ch> <8c998edf-82a1-0769-77d7-7ef5076c098c@aklaver.com> <dca61c7b-a5e2-1269-3440-7a89a86186e1@sourcepole.ch> <06131c03-5dd1-a8e1-37ea-65014470c22e@sourcepole.ch> <3370e253-1928-294a-facb-e9850bfefa90@aklaver.com> <589f2863-f7a8-3519-533a-f5751513823b@aklaver.com> <1c22da3e-1b18-39b8-cecb-26777dc683f0@enterprisedb.com> <354889.1656081388@sss.pgh.pa.us> * 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