]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix initdb's -c option to treat the GUC name case-insensitively.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 4 Mar 2024 17:00:39 +0000 (12:00 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 4 Mar 2024 17:00:39 +0000 (12:00 -0500)
commitb78f4d22b2f21a3efd1cb8969c9e8fa1f52466c5
tree3882c9a639c98529f81e1d8a84064f413c8f733d
parent896bd6da8e2bfcf912cd8c2d4f07e4656b3f8155
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.horikyota.ntt@gmail.com
src/bin/initdb/initdb.c
src/bin/initdb/t/001_initdb.pl