| From: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andres Freund <andres(at)anarazel(dot)de> |
| Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org, Michael Paquier <michael(at)paquier(dot)xyz>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com> |
| Subject: | Re: [HACKERS] taking stdbool.h into use |
| Date: | 2018-03-23 02:17:29 |
| Message-ID: | 30536376-cb57-d233-12d4-a5d70d0349ce@2ndquadrant.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 3/21/18 07:48, Peter Eisentraut wrote:
> On 3/21/18 01:51, Tom Lane wrote:
>> Andres Freund <andres(at)anarazel(dot)de> writes:
>>> On March 20, 2018 8:24:41 PM PDT, Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>>>> Yeah, I agree with that. Just not using stdbool.h in those cases ought
>>>> to be fine. Any platforms where sizeof(bool) is 4 involves macos older
>>>> than 10.5 and Windows platforms using MSVC versions older than 2003
>>>> (didn't look further down either).
>>
>>> Aren't there some somewhat modern architectures where that's still the case, for performance reasons? PPC or such?
>>
>> Well, hydra (F16 on ppc64) has sizeof(bool) = 1. Don't have any other
>> good datapoints handy. Presumably we'd set up configure to report
>> what it found out, so it wouldn't take long to survey the buildfarm.
>
> I've pushed the configure tests. Let's see what they say.
So after a day, only the old macOS PowerPC systems have sizeof(bool) == 4.
I have committed the rest of this patch now.
Windows could use some manual adjustments in pg_config.h.win32 if anyone
cares. (That file also needs some more updates.)
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Amit Langote | 2018-03-23 02:22:26 | Re: ON CONFLICT DO UPDATE for partitioned tables |
| Previous Message | Peter Geoghegan | 2018-03-23 01:15:54 | Re: [HACKERS] MERGE SQL Statement for PG11 |