Re: pg_stat_statements locking - Mailing list pgsql-hackers

From Julien Rouhaud
Subject Re: pg_stat_statements locking
Date
Msg-id 20220912180835.j5hzzfka5wsdpbpf@jrouhaud
Whole thread Raw
In response to Re: pg_stat_statements locking  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Sep 12, 2022 at 02:01:23PM -0400, Tom Lane wrote:
> Andrey Borodin <x4mmm@yandex-team.ru> writes:
> >> On 12 Sep 2022, at 18:18, Julien Rouhaud <rjuju123@gmail.com> wrote:
> >> That being
> >> said I don't know if adding a timeout would be too expensive for the lwlock
> >> infrastructure.
> 
> I want to object fiercely to loading down LWLock with anything like
> timeouts.  It's supposed to be "lightweight".  If we get away from
> that we're just going to find ourselves needing another lighter-weight
> lock mechanism.

That's what I was thinking, so it looks like a show-stopper for the proposed
patch.



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: PostgreSQL 15 release announcement draft
Next
From: Daniel Gustafsson
Date:
Subject: Re: Fix broken link to FreeBSD DocProj in docs