Re: [PATCH] COPY command's data format option allows only lowercasecsv, text or binary

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [PATCH] COPY command's data format option allows only lowercasecsv, text or binary
Дата
Msg-id 20200625020733.GF130132@paquier.xyz
обсуждение исходный текст
Ответ на Re: [PATCH] COPY command's data format option allows only lowercase csv, text or binary  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [PATCH] COPY command's data format option allows only lowercasecsv, text or binary  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On Wed, Jun 24, 2020 at 12:55:22PM -0400, Tom Lane wrote:
> Yeah, I'm sure there are a few inconsistencies.  We previously made a
> pass to get rid of pg_strcasecmp for anything that had been through
> the parser's downcasing (commit fb8697b31) but I wouldn't be surprised
> if that missed a few cases, or if new ones have snuck in.  Anyway,
> "don't use pg_strcasecmp unnecessarily" was definitely the agreed-to
> policy as of Jan 2018.

0d8c9c1 has introduced some in parse_basebackup_options() for the
new manifest option, and fe30e7e for AlterType(), no?

> My vague recollection is that there are a few exceptions (defGetBoolean
> may well be one of them) where pg_strcasecmp still seemed necessary
> because the input might not have come through the parser in some usages.

Yep, there were a couple of exceptions.  What was done at this time
was a case-by-case lookup to check what came only from the parser.
--
Michael

Вложения

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

Предыдущее
От: David Rowley
Дата:
Сообщение: Keep elog(ERROR) and ereport(ERROR) calls in the cold path
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: Assertion failure in pg_copy_logical_replication_slot()