Re: Infinite Interval

Поиск
Список
Период
Сортировка
От Joseph Koshakow
Тема Re: Infinite Interval
Дата
Msg-id CAAvxfHfgkcSwTPF-u+uqRo70hxFGTm3tf6+OgtYWEV_MiyKnYw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Infinite Interval  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Infinite Interval  (Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>)
Список pgsql-hackers


On Sun, Mar 19, 2023 at 5:13 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
>    Did you actually write "if TIMESTAMP_IS_NOBEGIN(dt2)" and not
>    "if (TIMESTAMP_IS_NOBEGIN(dt2))"?  If the former, I'm not surprised
>    that pgindent gets confused.  The parentheses are required by the
>    C standard.  Your code might accidentally work because the macro
>    has parentheses internally, but call sites have no business
>    knowing that.  For example, it would be completely legit to change
>    TIMESTAMP_IS_NOBEGIN to be a plain function, and then this would be
>    syntactically incorrect.

Oh duh. I've been doing too much Rust development and did this without
thinking. I've attached a patch with a fix.

- Joe Koshakow
Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Infinite Interval
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Fix fseek() detection of unseekable files on WIN32