Re: [COMMITTERS] pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.
Date: 2016-04-14 06:31:21
Message-ID: 20160414063121.d6neaimawvffo3mh@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 2016-04-13 20:09:46 -0400, Tom Lane wrote:
> Andres Freund <andres(at)anarazel(dot)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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Masahiko Sawada 2016-04-14 08:17:43 Re: [COMMITTERS] pgsql: Add regression tests for multiple synchronous standbys.
Previous Message David Rowley 2016-04-14 04:48:45 Re: pgsql: Provide errno-translation wrappers around bind() and listen() on

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2016-04-14 07:30:30 Re: postgres_fdw : altering foreign table not invalidating prepare statement execution plan.
Previous Message Ashutosh Bapat 2016-04-14 06:20:45 Re: Postgres_fdw join pushdown - INNER - FULL OUTER join combination generating wrong result