Re: Missing LWLock protection in pgstat_reset_replslot() - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Missing LWLock protection in pgstat_reset_replslot()
Date
Msg-id ZersgoJ-jppSgQU4@paquier.xyz
Whole thread Raw
In response to Re: Missing LWLock protection in pgstat_reset_replslot()  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Responses Re: Missing LWLock protection in pgstat_reset_replslot()
List pgsql-hackers
On Fri, Mar 08, 2024 at 10:26:21AM +0000, Bertrand Drouvot wrote:
> Yeah, good point: I'll create a dedicated patch for that.

Sounds good to me.

> Note that currently pgstat_drop_replslot() would not satisfy this new Assert
> when being called from InvalidatePossiblyObsoleteSlot(). I think this call
> should be removed and created a dedicated thread for that [1].
>
> [1]: https://www.postgresql.org/message-id/ZermH08Eq6YydHpO%40ip-10-97-1-34.eu-west-3.compute.internal

Thanks.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Bharath Rupireddy
Date:
Subject: Re: New Table Access Methods for Multi and Single Inserts
Next
From: Michael Paquier
Date:
Subject: Re: Spurious pgstat_drop_replslot() call