pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Move definition of standard collations from initdb to pg_collation.dat
Date: Tue, 28 Mar 2023 07:33:06 -0400
Message-ID: <3440245.1680003186@sss.pgh.pa.us> (raw)
In-Reply-To: <08b58ecd-0d50-9395-ed51-dc8294e3fd2b@enterprisedb.com>
References: <08b58ecd-0d50-9395-ed51-dc8294e3fd2b@enterprisedb.com>

Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> While working on [0], I was wondering why the collations ucs_basic and 
> unicode are not in pg_collation.dat.  I traced this back through 
> history, and I think this was just lost in a game of telephone.
> The initial commit for pg_collation.h (414c5a2ea6) has only the default 
> collation in pg_collation.h (pre .dat), with initdb handling everything 
> else.  Over time, additional collations "C" and "POSIX" were moved to 
> pg_collation.h, and other logic was moved from initdb to 
> pg_import_system_collations().  But ucs_basic was untouched.  Commit 
> 0b13b2a771 rearranged the relative order of operations in initdb and 
> added the current comment "We don't want to pin these", but looking at 
> the email[1], I think this was more a guess about the previous intent.

Yeah, I was just loath to change the previous behavior in that
patch.  I can't see any strong reason not to pin these entries.

> I suggest we fix this now; see attached patch.

While we're here, do we want to adopt some other spelling of "the
root locale" than "und", in view of recent discoveries about the
instability of that on old ICU versions?

			regards, tom lane





view thread (3+ messages)  latest in thread

Message-ID: <3440245.1680003186@sss.pgh.pa.us>
Permalink:  ../3440245.1680003186@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3440245.1680003186@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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter.eisentraut@enterprisedb.com
  Subject: Re: Move definition of standard collations from initdb to pg_collation.dat
  In-Reply-To: <3440245.1680003186@sss.pgh.pa.us>
  References: <08b58ecd-0d50-9395-ed51-dc8294e3fd2b@enterprisedb.com> <3440245.1680003186@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