replace en_US.UTF-8 with C.UTF-8 in postgresql-check-db-dir
Task Info (Flyspray) | |
---|---|
Opened By | nl6720 (nl6720) |
Task ID | 75665 |
Type | General Gripe |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2022-08-22 07:25:06 UTC |
Status | Assigned |
Assignee | Levente Polyak (anthraxx) |
Details
Description: When /var/lib/postgres/data is empty, the package install script will run postgresql-check-db-dir (a custom Arch script: https://github.com/archlinux/svntogit-packages/blob/packages/postgresql/trunk/postgresql-check-db-dir ) 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: