createdb compares strategy as case-sensitive

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема createdb compares strategy as case-sensitive
Дата
Msg-id 90c6913a-1dd2-42b4-8365-ce3b09c39b17@enterprisedb.com
обсуждение исходный текст
Ответы Re: createdb compares strategy as case-sensitive  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

While doing some testing with createdb, I noticed it only accepts
file_copy/wal_log as valid strategies, not FILE_COPY/WAL_LOG (which is
what the docs say). The same thing applies to CREATE DATABASE.

The problem is that createdb() does the check using strcmp() which is
case-sensitive. IMHO this should do pg_strcasecmp() which is what we do
for other string parameters nearby.

Patch attached. This should be backpatched to 15, I think.


regards

-- 
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Performance of JSON_TABLE vs jsonb_to_recordset
Следующее
От: Tom Lane
Дата:
Сообщение: Re: createdb compares strategy as case-sensitive