postgresql/src/bin/scripts/t
Tomas Vondra 8c239ee15a createdb: compare strategy case-insensitive
When specifying the createdb strategy, the documentation suggests valid
options are FILE_COPY and WAL_LOG, but the code does case-sensitive
comparison and accepts only "file_copy" and "wal_log" as valid.

Fixed by doing a case-insensitive comparison using pg_strcasecmp(), same
as for other string parameters nearby.

While at it, apply fmtId() to a nearby "locale_provider". This already
did the comparison in case-insensitive way, but the value would not be
double-quoted, confusing the parser and the error message.

Backpatch to 15, where the strategy was introduced.

Backpatch-through: 15
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/90c6913a-1dd2-42b4-8365-ce3b09c39b17@enterprisedb.com
2024-04-21 21:21:26 +02:00
..
010_clusterdb.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
011_clusterdb_all.pl clusterdb: Allow specifying tables to process in all databases. 2024-03-11 13:11:20 -05:00
020_createdb.pl createdb: compare strategy case-insensitive 2024-04-21 21:21:26 +02:00
040_createuser.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
050_dropdb.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
070_dropuser.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
080_pg_isready.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
090_reindexdb.pl reindexdb: Add the index-level REINDEX with multiple jobs 2024-03-25 02:07:15 +02:00
091_reindexdb_all.pl reindexdb: Allow specifying objects to process in all databases. 2024-03-11 15:42:27 -05:00
100_vacuumdb.pl vacuumdb: Allow specifying objects to process in all databases. 2024-03-11 10:33:36 -05:00
101_vacuumdb_all.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
102_vacuumdb_stages.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
200_connstr.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00