Re: [HACKERS] taking stdbool.h into use

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, Michael Paquier <michael(at)paquier(dot)xyz>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, 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-21 05:51:01
Message-ID: 23056.1521611461@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Edmund Horner 2018-03-21 06:51:52 Re: PATCH: psql tab completion for SELECT
Previous Message Rady, Doug 2018-03-21 05:42:33 Re: PATCH: pgbench - option to build using ppoll() for larger connection counts