From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.
Date: Wed, 13 Apr 2016 23:31:21 -0700
Message-ID: <20160414063121.d6neaimawvffo3mh@alap3.anarazel.de> (raw)
In-Reply-To: <16042.1460592586@sss.pgh.pa.us>
References: <1881.1460431476@sss.pgh.pa.us>
<4369.1460435533@sss.pgh.pa.us>
<20160412050038.ua2avkwi6dxxcjhx@alap3.anarazel.de>
<32012.1460472131@sss.pgh.pa.us>
<3736.1460476321@sss.pgh.pa.us>
<20160413180414.b3cbliwgzrfinxg3@alap3.anarazel.de>
<16708.1460571375@sss.pgh.pa.us>
<20160413182019.opzgxtnmjkeibmub@alap3.anarazel.de>
<20160414000412.7b7yocwptunnbptt@alap3.anarazel.de>
<16042.1460592586@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 2016-04-13 20:09:46 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > On 2016-04-13 11:20:19 -0700, Andres Freund wrote:
> >> Heh, I was wondering the same aftering sending the last email. Will do
> >> that then.
>
> > Pushed. Let's see what pademelon says...
>
> I lit off a run, but it'll be a few hours till we have results...
In hindsight obviously, this isn't sufficient because s_lock reports the
caller's file/line/function, not __FILE__ etc. So I guess we're left
moving initialization to an inline function - will do so tomorrow.
I'm also putting up an animal with clang that uses
CFLAGS='-std=c89 -Wc99-extensions -Werror=c99-extensions'
which actually catches this.
I'd previously tested with gcc and "-Wc90-c99-compat -Werror=c90-c99-compat
-Wno-long-long -Wno-error=long-long -std=c90", but that doesn't catch
that error.
(both find a couple trailing commas in enums, will fix)
- Andres
--
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-committers@postgresql.org
Cc: andres@anarazel.de, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.
In-Reply-To: <20160414063121.d6neaimawvffo3mh@alap3.anarazel.de>
References: <1881.1460431476@sss.pgh.pa.us> <4369.1460435533@sss.pgh.pa.us> <20160412050038.ua2avkwi6dxxcjhx@alap3.anarazel.de> <32012.1460472131@sss.pgh.pa.us> <3736.1460476321@sss.pgh.pa.us> <20160413180414.b3cbliwgzrfinxg3@alap3.anarazel.de> <16708.1460571375@sss.pgh.pa.us> <20160413182019.opzgxtnmjkeibmub@alap3.anarazel.de> <20160414000412.7b7yocwptunnbptt@alap3.anarazel.de> <16042.1460592586@sss.pgh.pa.us> <20160414063121.d6neaimawvffo3mh@alap3.anarazel.de>
* 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