convert various variables to atomics

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: convert various variables to atomics
Date: 2026-07-09 20:50:01
Message-ID: alAJeRRzehDjLaF1@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The attached patch set converts various variables to atomics, thereby
allowing us to remove a handful of spinlocks and volatile qualifiers.
We've been slowly moving in this direction for a while already. I think
all of these are pretty straightforward and easy to reason about.

--
nathan

Attachment Content-Type Size
v1-0001-convert-SISeg-maxMsgNum-to-an-atomic.patch text/plain 5.9 KB
v1-0002-convert-ParallelBitmapHeapState-state-to-an-atomi.patch text/plain 2.5 KB
v1-0003-convert-FixedParallelState-last_xlog_end-to-an-at.patch text/plain 2.8 KB
v1-0004-convert-PROC_HDR-startupBufferPinWaitBufId-to-an-.patch text/plain 2.3 KB
v1-0005-convert-Sharedsort-currentWorker-workersFinished-.patch text/plain 3.0 KB
v1-0006-convert-SharedFileSet-refcnt-to-an-atomic.patch text/plain 3.0 KB
v1-0007-convert-ParallelBlockTableScanDescData-phs_-start.patch text/plain 7.0 KB
v1-0008-convert-FastPathStrongRelationLocks-to-atomics.patch text/plain 5.8 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2026-07-09 21:14:25 LibreSSL and OpenSSL separation in libpq to support 1.1.1 deprecation
Previous Message Thom Brown 2026-07-09 20:28:37 Re: SQL/JSON json_table plan clause