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

From Tom Lane
Subject Re: partitioned tables and contrib/sepgsql
Date
Msg-id 20411.1491369620@sss.pgh.pa.us
Whole thread Raw
In response to Re: partitioned tables and contrib/sepgsql  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: partitioned tables and contrib/sepgsql  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 4/5/17 00:58, Tom Lane wrote:
>> Another issue is whether you won't get compiler complaints about
>> redefinition of the "true" and "false" macros.  But those would
>> likely only be warnings, not flat-out errors.

> The complaint about bool is also just a warning.

Really?

$ cat test.c
typedef char bool;
typedef char bool;
$ gcc -c test.c
test.c:2: error: redefinition of typedef 'bool'
test.c:1: note: previous declaration of 'bool' was here

This is with gcc 4.4.7.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: partitioned tables and contrib/sepgsql
Next
From: Amit Langote
Date:
Subject: Re: Adding support for Default partition in partitioning