Status of 64 bit atomics

From: John Gorman <johngorman2(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Status of 64 bit atomics
Date: 2016-05-27 15:00:42
Message-ID: CALkS6B8N6uf7PNPjv6bKTaPhh4qVoRg46bSNr0Hhy2BGnBwYNQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-05-27 15:07:44 Re: Fix a typo in 9.6 release notes
Previous Message Kevin Grittner 2016-05-27 14:58:27 Re: [HACKERS] Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <