| От | Tom Lane |
|---|---|
| Тема | Re: GinPageIs* don't actually return a boolean |
| Дата | |
| Msg-id | 29387.1439419979@sss.pgh.pa.us обсуждение |
| Ответ на | Re: GinPageIs* don't actually return a boolean (Andres Freund <andres@anarazel.de>) |
| Ответы |
Re: GinPageIs* don't actually return a boolean
|
| Список | pgsql-hackers |
Andres Freund <andres@anarazel.de> writes:
> I went through all headers in src/include and checked for macros
> containing [^&]&[^&] and checked whether they have this hazard. Found a
> fair number.
> That patch also changes !! tests into != 0 style.
Looks OK to me, except I wonder why you did this#define TRIGGER_FIRED_FOR_ROW(event) \
- ((event) & TRIGGER_EVENT_ROW)
+ (((event) & TRIGGER_EVENT_ROW) == TRIGGER_EVENT_ROW)
rather than != 0. That way doesn't look either more efficient or
more readable.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера