Re: [HACKERS] taking stdbool.h into use - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] taking stdbool.h into use
Date
Msg-id c1662b8a-39c9-7b50-a8ab-d095b992fb9d@2ndquadrant.com
Whole thread Raw
In response to Re: [HACKERS] taking stdbool.h into use  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: [HACKERS] taking stdbool.h into use
List pgsql-hackers
On 12/27/17 19:47, Michael Paquier wrote:
>> For GinTernaryValue, I think it's easier to just make it the same size
>> as bool, since it doesn't go onto disk.  My earlier patch did that.  I'm
>> not sure it's worth adding more code to copy the array around.
> But on prairiedog the sizeof bool and char are different, so compilation
> would fail, no? 

An earlier patch I posted defines GinTernaryValue to be the same size as
bool, accounting for different possible sizes of bool.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: plpgsql function startup-time improvements
Next
From: Jeff Janes
Date:
Subject: Re: Why standby restores some WALs many times from archive?