Re: atomics.h may not be included from frontend code - Mailing list pgsql-hackers

From Tom Lane
Subject Re: atomics.h may not be included from frontend code
Date
Msg-id 12237.1519757003@sss.pgh.pa.us
Whole thread Raw
In response to Re: atomics.h may not be included from frontend code  (Andres Freund <andres@anarazel.de>)
Responses Re: atomics.h may not be included from frontend code
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2018-02-27 10:36:01 -0500, Robert Haas wrote:
>> However, those are presumably rare configurations that many people
>> (including many developers) don't care about.

> I don't think that's quite true anymore. We e.g. now rely on 64bit
> atomics being emulated on some machines, and they're unavailable on a
> bigger number of systems than atomics proper, particularly 32bit
> sytems.  There's also hppa, of course ;)

I had the idea that there were also still some MIPS machines out there
with no real atomics support.  If there's not, I wouldn't complain
hard about deciding to desupport HPPA, whenever we want to rip out
the fallbacks.

I am not sure though that we want to promise that atomics.h would work
in arbitrary frontend environments in any case.  Those functions are
very specifically intended to do what PG needs them to do; do we
really want them to try to serve multiple masters?

            regards, tom lane


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Sigh, I broke crake again
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] [bug-fix] Cannot select big bytea values (~600MB)