pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.
Date: Sun, 17 Apr 2016 12:01:48 -0400
Message-ID: <9194.1460908908@sss.pgh.pa.us> (raw)
In-Reply-To: <E1apSHT-0007xJ-Bh@gemulon.postgresql.org>
References: <E1apSHT-0007xJ-Bh@gemulon.postgresql.org>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Andres Freund <andres@anarazel.de> writes:
> Allow Pin/UnpinBuffer to operate in a lockfree manner.

Now that I've had some occasion to look around in bufmgr.c, I am very
unhappy that there are still boatloads of comments talking about a buffer
header's spinlock, when there is in fact no spinlock anymore.  Please
expend some effort on making this less confusing for the next hacker.
Maybe make those comments talk about a "lock bit" instead?

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (30+ messages)  latest in thread

Message-ID: <9194.1460908908@sss.pgh.pa.us>
Permalink:  ../9194.1460908908@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9194.1460908908@sss.pgh.pa.us

 · 

reply

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de
  Subject: Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.
  In-Reply-To: <9194.1460908908@sss.pgh.pa.us>
  References: <E1apSHT-0007xJ-Bh@gemulon.postgresql.org> <9194.1460908908@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