Add pg_atomic_unlocked_write_u64
Andres Freund <andres@anarazel.de>
Add pg_atomic_unlocked_write_u64 The 64bit equivalent of pg_atomic_unlocked_write_u32(), to be used in an upcoming patch converting BufferDesc.state into a 64bit atomic. Reviewed-by: Melanie Plageman <melanieplageman@gmail.com> Discussion: https://postgr.es/m/fvfmkr5kk4nyex56ejgxj3uzi63isfxovp2biecb4bspbjrze7@az2pljabhnff
Files
| Path | Change | +/− |
|---|---|---|
| src/include/port/atomics/generic.h | modified | +9 −0 |
| src/include/port/atomics.h | modified | +10 −0 |
Discussion
- Buffer locking is special (hints, checksums, AIO writes) 120 messages · 2025-08-22 → 2026-04-03