On Wed, Nov 18, 2026 at 04:33:12PM -0800, Masahiko Sawada wrote:
> Alternative idea would be to pass an optional bool to
> BackgroundPsql.quit so that it quits the session and waits for the
> corresponding backend to exit too. I think that would be enough for
> 010_index_concurrently_upsert. It's close to the alternative patch
> Kuroda-san posted, in a reusable form. We can use it also in
> 051_effective_wal_level.pl.

I suspect that just offering this guarantee by default would have more
value in the long-run for the whole testing infrastructure.  We have
also tests that depend on the timing where the shmem exit callbacks
are called, and backends could be reported as exited back to the
client before they have actually plugged off from the server and run
all the exit/cleanup code...
--
Michael

Attachment: signature.asc
Description: PGP signature

Reply via email to