Re: Injection point: fix race condition between attach and cleanup

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>
Cc: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, 'Kyotaro Horiguchi' <horikyota(dot)ntt(at)gmail(dot)com>, "sawada(dot)mshk(at)gmail(dot)com" <sawada(dot)mshk(at)gmail(dot)com>
Subject: Re: Injection point: fix race condition between attach and cleanup
Date: 2026-11-24 03:52:33
Message-ID: awUKARcgzyqUe_VF@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 20, 2026 at 12:27:33PM +0000, Hayato Kuroda (Fujitsu) wrote:
> 0001 implemented the idea and 0002 used it. 0003 patch made sure the waiting is done
> by default. Per my quick check, 013_temp_obj_multisession tried to ensure
> shmem_cleanup can be blocked, so quit(0) must be used here.

Hmm. I would probably just merge all 0001~0003 together as you are
moving from a single quit_and_wait() in test 051 to a global rule,
changing the same spots three times to accomodate to the intermediate
rules you are introducing in each patch of this set.

Any thoughts from others?
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro Horiguchi 2026-11-24 04:09:57 Re: postgres_fdw: statistics import can silently fall back to sampling across encodings
Previous Message Xuneng Zhou 2026-11-24 03:40:32 Re: Set 1s WaitLatch timeout if standby limit has expired in ResolveRecoveryConflictWithBufferPin