Re: MultiXact\SLRU buffers configuration - Mailing list pgsql-hackers

From Andrey M. Borodin
Subject Re: MultiXact\SLRU buffers configuration
Date
Msg-id AE4A1D43-BB1C-45AB-A964-8455B2E60F8F@yandex-team.ru
Whole thread Raw
In response to Re: MultiXact\SLRU buffers configuration  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: MultiXact\SLRU buffers configuration
List pgsql-hackers

> On 28 Jan 2024, at 17:49, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
>
> I'd appreciate it if you or Horiguchi-san can update his patch to remove
> use of usleep in favor of a CV in multixact, and keep this CF entry to
> cover it.

Sure! Sounds great!

> Perhaps a test to make the code reach the usleep(1000) can be written
> using injection points (49cd2b93d7db)?

I've tried to prototype something like that. But interesting point between GetNewMultiXactId() and RecordNewMultiXact()
isa critical section, and we cannot have injection points in critical sections... 
Also, to implement such a test we need "wait" type of injection points, see step 2 in attachment. With this type of
injectionpoints I can stop a backend amidst entering information about new MultiXact. 


Best regards, Andrey Borodin.


Attachment

pgsql-hackers by date:

Previous
From: Dmitry Dolgov
Date:
Subject: Re: Schema variables - new implementation for Postgres 15
Next
From: Pavel Stehule
Date:
Subject: Re: proposal: psql: show current user in prompt