Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#75665 - [postgresql] replace en_US.UTF-8 with C.UTF-8 in postgresql-check-db-dir

Attached to Project: Arch Linux
Opened by nl6720 (nl6720) - Monday, 22 August 2022, 07:25 GMT
Last edited by Toolybird (Toolybird) - Monday, 22 August 2022, 08:01 GMT
Task Type General Gripe
Category Packages: Extra
Status Assigned
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No


When /var/lib/postgres/data is empty, the package install script will run postgresql-check-db-dir (a custom Arch script: ) which prints:

"/var/lib/postgres/data" is missing or empty. Use a command like
su - postgres -c "initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'"
with relevant options, to initialize the database cluster.

Since the en_US.UTF-8 locale requires generating it before use, it should be better to instead suggest the C.UTF-8 locale that's shipped by default.

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any
postgresql 14.5-1

Steps to reproduce:
# pacman -S postgresql
This task depends upon