Status of 64 bit atomics - Mailing list pgsql-hackers

From John Gorman
Subject Status of 64 bit atomics
Date
Msg-id CALkS6B8N6uf7PNPjv6bKTaPhh4qVoRg46bSNr0Hhy2BGnBwYNQ@mail.gmail.com
Whole thread Raw
Responses Re: Status of 64 bit atomics  (Arthur Silva <arthurprs@gmail.com>)
Re: Status of 64 bit atomics  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Hi All

Someone recently told me that the postgresql atomics library was incomplete
for 64 bit operations such as pg_atomic_fetch_add_u64() and should not be used.

Can someone definitively confirm whether it is okay to rely on the 64 bit atomics
or whether it is better to protect 64 bit operations with a spinlock?

Thanks!
John

pgsql-hackers by date:

Previous
From: Kevin Grittner
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
Next
From: Tom Lane
Date:
Subject: Re: Fix a typo in 9.6 release notes