Re: Can can I make an injection point wait occur no more than once?

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Noah Misch <noah(at)leadboat(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Can can I make an injection point wait occur no more than once?
Date: 2025-07-08 01:40:20
Message-ID: CAH2-Wz=7HYa5XwaDkcD-cr0Auo6NsWHTuH-iXAdK==+zih_mUQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jul 7, 2025 at 7:43 PM Michael Paquier <michael(at)paquier(dot)xyz> wrote:
> That's a property that Noah was looking after when he's worked on his
> specs with the VACUUM/GRANT frictions, something that one would get
> with a debugger: keep waiting and allow the point to be detached in
> parallel.

I'm finding that the FreeBSD Meson CI target consistently fails with
this setup, though. And with just about any variant I can think of;
seems to fail quite reliably. The initial SELECT backwards scan
statement will complete without ever waiting (though only on CI).

Do you know what that might be? It would be a lot easier if there was
at least a way to debug this locally.

> > For what it's worth, I found
> > src/test/modules/injection_points/specs/basic.spec (which is supposed
> > to serve as a template) hard to follow. The comments don't seem to
> > explain what the detach and wait functions actually do, and how and
> > why one might want to call them together.
>
> If you see ways to improve the existing template, please feel free to
> propose something, sure.

I'll need to figure this out for myself first.

--
Peter Geoghegan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Cédric Villemain 2025-07-08 01:47:00 Re: Adding basic NUMA awareness - Preliminary feedback and outline for an extensible approach
Previous Message Jeff Davis 2025-07-08 01:14:10 Re: Remaining dependency on setlocale()