Re: Reducing ClogControlLock contention - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Reducing ClogControlLock contention
Date
Msg-id 20150701102111.GZ30708@awork2.anarazel.de
Whole thread Raw
In response to Re: Reducing ClogControlLock contention  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: Reducing ClogControlLock contention  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 2015-07-01 11:19:40 +0100, Simon Riggs wrote:
> What "tricks" are being used??
> 
> Please explain why taking 2 locks is bad here, yet works fine elsewhere.

I didn't say anything about 'bad'. It's more complicated than one
lock. Suddenly you have to care about lock ordering and such. The
algorithms for ensuring correctness gets more complicated.



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Reducing ClogControlLock contention
Next
From: Fujii Masao
Date:
Subject: Re: Expending the use of xlog_internal.h's macros