Re: Patch: fix lock contention for HASHHDR.mutex - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Patch: fix lock contention for HASHHDR.mutex
Date
Msg-id CA+TgmoaEJLiUJhK2zKL2wVPwDe2m_v_=D4Lp2GpDrYGpWmUQnQ@mail.gmail.com
Whole thread Raw
In response to Re: Patch: fix lock contention for HASHHDR.mutex  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: Patch: fix lock contention for HASHHDR.mutex
List pgsql-hackers
On Sat, Mar 19, 2016 at 12:28 AM, Amit Kapila <amit.kapila16@gmail.com> wrote:
> Won't in theory, without patch as well nentries can overflow after running
> for very long time?  I think with patch it is more prone to overflow because
> we start borrowing from other free lists as well.

Uh, I don't think so.  Without the patch, there is just one entries
counter and it goes up and down.  How would it ever overflow?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Idle In Transaction Session Timeout, revived
Next
From: Robert Haas
Date:
Subject: Re: [COMMITTERS] pgsql: Improve memory management for external sorts.