Fix initdb's -c option to treat the GUC name case-insensitively.
authorTom Lane <[email protected]>
Mon, 4 Mar 2024 17:00:39 +0000 (12:00 -0500)
committerTom Lane <[email protected]>
Mon, 4 Mar 2024 17:00:48 +0000 (12:00 -0500)
commitfce2ce797c412df8b794b8a92c5a586db5e1bedc
tree10a469099c53f749c569a180e37ff063da88947f
parenta0b808baef39e9f9465b7f63f2d735f35852aa21
Fix initdb's -c option to treat the GUC name case-insensitively.

The backend treats GUC names case-insensitively, so this code should
too.  This avoids ending up with a confusing set of redundant entries
in the generated postgresql.conf file.

Per report from Kyotaro Horiguchi.  Back-patch to v16 where this
feature was added (in commit 3e51b278d).

Discussion: https://postgr.es/m/20230928.164904.2153358973162534034[email protected]
src/bin/initdb/initdb.c
src/bin/initdb/t/001_initdb.pl