pgsql: Make locale option behavior more consistent

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make locale option behavior more consistent
Date: 2022-09-13 12:39:27
Message-ID: E1oY5CJ-0009sE-Bk@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make locale option behavior more consistent

Locale options can be specified for initdb, createdb, and CREATE
DATABASE. In initdb, it has always been possible to specify --locale
and then some --lc-* option to override a category. CREATE DATABASE
and createdb didn't allow that, requiring either the all-categories
option or only per-category options. In
f2553d43060edb210b36c63187d52a632448e1d2, this was changed in CREATE
DATABASE (perhaps by accident?) to be more like the initdb behavior,
but createdb still had the old behavior.

Now we change createdb to match the behavior of CREATE DATABASE and
initdb, and also update the documentation of CREATE DATABASE to match
the new behavior, which was not done in the above commit.

Author: Marina Polyakova <m(dot)polyakova(at)postgrespro(dot)ru>
Reviewed-by: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Discussion: https://www.postgresql.org/message-id/7c99c132dc9c0ac630e0127f032ac480@postgrespro.ru

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3e694b318d20c876a3fd64f8e44d2ba5eab7a022

Modified Files
--------------
doc/src/sgml/ref/create_database.sgml | 3 +--
src/bin/scripts/createdb.c | 10 ++++------
2 files changed, 5 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2022-09-13 14:11:08 pgsql: Don't reflect unescaped cert data to the logs
Previous Message Alvaro Herrera 2022-09-13 12:11:38 Re: pgsql: Doc: Explain about Column List feature.