Re: partitioned tables and contrib/sepgsql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: partitioned tables and contrib/sepgsql
Дата
Msg-id 20506.1491409585@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [HACKERS] partitioned tables and contrib/sepgsql  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> GCC generally doesn't warn about macro redefinitions, if both
> definitions are equivalent.

But they're *not* equivalent.  c.h has

#define true    ((bool) 1)

whereas so far as I can see the <stdbool.h> definition is just

#define true    1

And if you put those two definitions together you will get a warning.
The lack of one with c.h + <stdbool.h> means somebody is cheating.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PG_GETARG_GISTENTRY?
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Functions Immutable but not parallel safe?