Re: [HACKERS] Status of 64 bit atomics

2016-05-27 Thread Andres Freund
Hi, On 2016-05-27 11:00:42 -0400, John Gorman wrote: > 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. There's currently no fallback for 32bit platforms without 64bit atomics support.

Re: [HACKERS] Status of 64 bit atomics

2016-05-27 Thread Arthur Silva
On May 27, 2016 5:01 PM, "John Gorman" wrote: > > 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 a

[HACKERS] Status of 64 bit atomics

2016-05-27 Thread John Gorman
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