| От | Andres Freund |
|---|---|
| Тема | Re: GinPageIs* don't actually return a boolean |
| Дата | |
| Msg-id | 20150812161140.GD25424@awork2.anarazel.de обсуждение |
| Ответ на | Re: GinPageIs* don't actually return a boolean (Alvaro Herrera <alvherre@2ndquadrant.com>) |
| Ответы |
Re: GinPageIs* don't actually return a boolean
Re: GinPageIs* don't actually return a boolean |
| Список | pgsql-hackers |
On 2015-08-11 13:49:19 -0300, Alvaro Herrera wrote: > Andres Freund wrote: > > On 2015-08-11 12:43:03 -0400, Robert Haas wrote: > > > On Tue, Aug 11, 2015 at 12:40 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > > > > We do not use !! elsewhere for this purpose, and I for one find it a > > > > pretty ugly locution. > > > > > > We do, actually, now, in contrib/pg_xlogdump/pg_xlogdump.c. I'd be in > > > favor of getting rid of those. Those got already removed by Heikki's WAL format changes... > > And a bunch more places actually. Blame me. I'll come up with a patch > > fixing the macros and converting existing !! style ones. > > Actually there's one that's not yours ... I'm not touching sepgsql... ;) 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. Greetings, Andres Freund
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера