Re: BUG #16939: Plural interval for negative singular

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #16939: Plural interval for negative singular
Дата
Msg-id 2267469.1619456564@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #16939: Plural interval for negative singular  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #16939: Plural interval for negative singular  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-bugs
Bruce Momjian <bruce@momjian.us> writes:
> On Mon, Apr 26, 2021 at 12:45:34PM -0400, Tom Lane wrote:
>> I agree with Noah's opinion that we should stick to the historical
>> behavior in the interval I/O functions.  There is not enough solidity
>> in the "this is grammatically wrong" argument to justify taking any
>> risk of application breakage, and it seems like there is some risk of
>> that there.

> Are you saying we should revert the patch and leave the plurals
> inconsistent in different places?

As far as the changes in datetime.c and interval.c are concerned,
yes.  I don't care too much about what you did in fe-print.c,
although TBH that case should be unreachable shouldn't it?
When would PQntuples() return -1?

(I shy gently away from the fact that that fe-print.c code is
relentlessly untranslatable.)

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #16939: Plural interval for negative singular
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Bug in handling default privileges inside extension update scripts