From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Our "fallback" atomics implementation doesn't actually work
Date: Fri, 07 Oct 2016 17:12:45 -0400
Message-ID: <22264.1475874765@sss.pgh.pa.us> (raw)
In-Reply-To: <20161007184007.54cqoed2jwln76wh@alap3.anarazel.de>
References: <14947.1475690465@sss.pgh.pa.us>
<20161005183402.6veikn2ajr52vosy@alap3.anarazel.de>
<24585.1475694129@sss.pgh.pa.us>
<20161006024811.fcll3nnfmdn4qtpy@alap3.anarazel.de>
<25314.1475726793@sss.pgh.pa.us>
<20161007184007.54cqoed2jwln76wh@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Andres Freund <andres@anarazel.de> writes:
> It's not quite there yet, unfortunately. At the moment
> pg_atomic_write_u32() is used for local buffers - and we explicitly
> don't want that to be locking for temp buffers
> (c.f. 6b93fcd149329d4ee7319561b30fc15a573c6307).
Hm.
> Don't really have a great idea about addressing this, besides either
> just living with the lock for temp buffers on fallback platforms (which
> don't have much of a practical relevance), or introduce
> pg_atomic_unlocked_write_u32() or something. Neither seems great.
Maybe we could hack it with some macro magic that would cause
pg_atomic_write_u32() to be expanded into a simple assignment in
localbuf.c only?
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, andres@anarazel.de
Subject: Re: Our "fallback" atomics implementation doesn't actually work
In-Reply-To: <22264.1475874765@sss.pgh.pa.us>
References: <14947.1475690465@sss.pgh.pa.us> <20161005183402.6veikn2ajr52vosy@alap3.anarazel.de> <24585.1475694129@sss.pgh.pa.us> <20161006024811.fcll3nnfmdn4qtpy@alap3.anarazel.de> <25314.1475726793@sss.pgh.pa.us> <20161007184007.54cqoed2jwln76wh@alap3.anarazel.de> <22264.1475874765@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox