Re: partitioned tables and contrib/sepgsql - Mailing list pgsql-hackers

From Tom Lane
Subject Re: partitioned tables and contrib/sepgsql
Date
Msg-id 20506.1491409585@sss.pgh.pa.us
Whole thread Raw
In response to [HACKERS] partitioned tables and contrib/sepgsql  (Stephen Frost <sfrost@snowman.net>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: PG_GETARG_GISTENTRY?
Next
From: Robert Haas
Date:
Subject: Re: Functions Immutable but not parallel safe?