Re: Move PinBuffer and UnpinBuffer to atomics - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Move PinBuffer and UnpinBuffer to atomics
Date
Msg-id 20701.1459433769@sss.pgh.pa.us
Whole thread Raw
In response to Re: Move PinBuffer and UnpinBuffer to atomics  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> Oh. I confused my approaches. I was thinking about going for 2):

>> 2) Replace the lwlock spinlock by a bit in LWLock->state. That'd avoid
>> embedding the spinlock, and actually might allow to avoid one atomic
>> op in a number of cases.

> precisely because of that concern.

Oh, okay, ignore my comment just now in the other thread.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Performance degradation in commit 6150a1b0
Next
From: Alvaro Herrera
Date:
Subject: Re: Correction for replication slot creation error message in 9.6