postgresql/src/backend
Tom Lane ba33775fd0 Restore initdb's old behavior of always setting the lc_xxx GUCs.
In commit 3e51b278d I (tgl) caused initdb to leave lc_messages and
other lc_xxx GUCs commented-out in the installed postgresql.conf file
if they were going to be set to 'C'.  This was a hack for cosmetic
purposes, and it was buggy because lc_messages' wired-in default is
not 'C' but '' (empty string).  That led to --no-locale not having
the expected effect, since the postmaster would then obtain
lc_messages from its startup environment.

Let's just revert to the prior behavior of always de-commenting the
lc_xxx entries; the argument for changing that longstanding behavior
was weak in the first place.

Also, fix postgresql.conf.sample's erroneous claim that the default
value of lc_messages is 'C'.  I suspect that was what misled me into
making this mistake in the first place.

Report and patch by Kyotaro Horiguchi.  Back-patch to v16 where
the problem was introduced.

Discussion: https://postgr.es/m/20231122.162700.1995154567625541112.horikyota.ntt@gmail.com
2024-01-10 18:09:29 -05:00
..
access Avoid trying to fetch metapage of an SPGist partitioned index. 2023-12-21 12:43:36 -05:00
archive Redesign archive modules 2023-02-17 14:26:42 +09:00
backup Message wording improvements 2023-07-10 10:46:54 +02:00
bootstrap Fix CREATE INDEX progress reporting for multi-level partitioning. 2023-03-25 15:34:03 -04:00
catalog Fix bugs in manipulation of large objects. 2023-12-15 13:55:05 -05:00
commands Fix bugs in manipulation of large objects. 2023-12-15 13:55:05 -05:00
executor Fix indentation in ExecParallelHashIncreaseNumBatches() 2024-01-08 19:57:09 +02:00
foreign Expand some more uses of "deleg" to "delegation" or "delegated". 2023-05-21 10:55:18 -04:00
jit llvmjit: Use explicit LLVMContextRef for inlining 2023-11-17 10:18:38 +01:00
lib Fix ILIST_DEBUG build 2023-01-18 10:26:15 -08:00
libpq Avoid masking EOF (no-password-supplied) conditions in auth.c. 2024-01-03 17:40:38 -05:00
main Remove obsolete defense against strxfrm() bugs. 2023-04-20 13:20:14 +12:00
nodes Handle WindowClause.runCondition in tree walker/mutator functions. 2024-01-10 13:36:34 -05:00
optimizer Ensure we preprocess expressions before checking their volatility. 2023-11-16 10:05:14 -05:00
parser Compute aggregate argument types correctly in transformAggregateCall(). 2023-11-06 10:38:00 -05:00
partitioning Fix incorrect step generation in HASH partition pruning 2023-10-12 19:51:26 +13:00
po Translation updates 2023-11-06 13:10:09 +01:00
port Update copyright for 2023 2023-01-02 15:00:37 -05:00
postmaster Avoid calling proc_exit() in processes forked by system(). 2023-10-17 10:41:58 -05:00
regex Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
replication Fix typo in comment 2023-12-12 12:16:38 +01:00
rewrite Fix RLS policy usage in MERGE. 2023-08-07 09:27:09 +01:00
snowball Fix the install rule for snowball_create.sql. 2023-05-23 11:15:57 -04:00
statistics Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
storage Fix corruption of local buffer state during extend of temp relation 2024-01-05 20:10:46 +09:00
tcop Be more rigorous about local variables in PostgresMain(). 2023-07-10 12:14:34 -04:00
tsearch Limit to_tsvector_byid's initial array allocation to something sane. 2023-09-25 11:50:28 -04:00
utils Restore initdb's old behavior of always setting the lc_xxx GUCs. 2024-01-10 18:09:29 -05:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile Give postgres.exe the icon of other executables. 2023-06-12 07:40:38 -07:00
meson.build Add win32ver data to meson-built postgres.exe. 2023-06-12 07:40:38 -07:00
nls.mk Add missing gettext triggers 2023-05-10 13:51:51 +02:00