pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: CREATE DATABASE: make LOCALE apply to all collation providers.
Date: Fri, 16 Jun 2023 17:41:49 +0000
Message-ID: <E1qADSG-0026fm-Gd@gemulon.postgresql.org> (raw)

CREATE DATABASE: make LOCALE apply to all collation providers.

For CREATE DATABASE, make LOCALE parameter apply regardless of the
provider used. Also affects initdb and createdb --locale arguments.

Previously, LOCALE (and --locale) only affected the database default
collation when using the libc provider.

Discussion: https://postgr.es/m/1a63084d-221e-4075-619e-6b3e590f673e@enterprisedb.com
Reviewed-by: Peter Eisentraut

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a14e75eb0b6a73821e0d66c0d407372ec8376105

Modified Files
--------------
doc/src/sgml/ref/create_collation.sgml         | 23 +++++++----
doc/src/sgml/ref/create_database.sgml          | 57 ++++++++++++++++++++------
doc/src/sgml/ref/createdb.sgml                 |  5 ++-
doc/src/sgml/ref/initdb.sgml                   |  7 ++--
src/backend/commands/collationcmds.c           |  2 +-
src/backend/commands/dbcommands.c              | 17 +++++---
src/bin/initdb/initdb.c                        | 10 ++++-
src/bin/initdb/t/001_initdb.pl                 | 11 +++++
src/bin/scripts/createdb.c                     | 13 +++---
src/bin/scripts/t/020_createdb.pl              | 15 +++++--
src/test/icu/t/010_database.pl                 | 33 +++++++++++----
src/test/regress/expected/collate.icu.utf8.out | 22 +++++-----
12 files changed, 155 insertions(+), 60 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1qADSG-0026fm-Gd@gemulon.postgresql.org>
Permalink:  ../E1qADSG-0026fm-Gd@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qADSG-0026fm-Gd@gemulon.postgresql.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: CREATE DATABASE: make LOCALE apply to all collation providers.
  In-Reply-To: <E1qADSG-0026fm-Gd@gemulon.postgresql.org>

* 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