Re: Lots of incorrect comments in nodeFuncs.c

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Lots of incorrect comments in nodeFuncs.c
Дата
Msg-id CAApHDvoF2d9nkbcmAoD8y9TUHPEaK4ekaZVQ_mn+R-0O4bEEUg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Lots of incorrect comments in nodeFuncs.c  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Lots of incorrect comments in nodeFuncs.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, 9 Apr 2021 at 13:52, Michael Paquier <michael@paquier.xyz> wrote:
>
> On Thu, Apr 08, 2021 at 09:21:30PM -0400, Alvaro Herrera wrote:
> > On 2021-Apr-08, Tom Lane wrote:
> >> Maybe like
> >>
> >>                 case T_ScalarArrayOpExpr:
> >>                     /* ScalarArrayOpExpr's result is boolean ... */
> >>                     coll = InvalidOid;      /* ... so it has no collation */
> >>                     break;
> >
> > This is much clearer, yeah.
>
> +1.

Yeah, that's much better.

For the exprSetCollation case, I ended up with:

                 case T_ScalarArrayOpExpr:
                     /* ScalarArrayOpExpr's result is boolean ... */
                     Assert(!OidIsValid(collation)); /* ... so never
set a collation */

I wanted something more like /* ... so we must never set a collation
*/ but that put the line longer than 80. I thought wrapping to a 2nd
line was excessive, so I shortened it to that.

David

Вложения

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

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: Re: missing documentation for streaming in-progress transactions
Следующее
От: Bharath Rupireddy
Дата:
Сообщение: Re: Simplify backend terminate and wait logic in postgres_fdw test