From: Michael Paquier <michael@paquier.xyz>
To: Andrey M. Borodin <x4mmm@yandex-team.ru>
Cc: Noah Misch <noah@leadboat.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Weird test mixup
Date: Thu, 2 May 2024 17:43:58 +0900
Message-ID: <ZjNSTsqAEaX4vvEE@paquier.xyz> (raw)
In-Reply-To: <99D1FBCA-6EA7-4BD0-922B-924A36D65183@yandex-team.ru>
References: <10fd6cdd-c5d9-46fe-9fa1-7e661191309e@iki.fi>
<2387221.1710454778@sss.pgh.pa.us>
<ZfOABU4ahF2QZQ6N@paquier.xyz>
<2393552.1710458033@sss.pgh.pa.us>
<ZfP7IDs9TvrKe49x@paquier.xyz>
<e1a7ab78-1fa9-419c-b0d1-36d971bdf946@iki.fi>
<ZfTcZW1-Kh3fFLnZ@paquier.xyz>
<20240501231214.40@rfd.leadboat.com>
<ZjNAUN5Hek-MyVWv@paquier.xyz>
<99D1FBCA-6EA7-4BD0-922B-924A36D65183@yandex-team.ru>
On Thu, May 02, 2024 at 01:33:45PM +0500, Andrey M. Borodin wrote:
> That seems to prevent meaningful use case. If we want exactly one
> session to be waiting just before some specific point, the only way
> to achieve this is to create local injection point. But the session
> must be resumable from another session.
> Without this local waiting injection points are meaningless.
I am not quite sure to follow your argument here. It is still
possible to attach a local injection point with a wait callback that
can be awaken by a different backend:
s1: select injection_points_set_local();
s1: select injection_points_attach('popo', 'wait');
s1: select injection_points_run('popo'); -- waits
s2: select injection_points_wakeup('popo');
s1: -- ready for action.
A detach is not a wakeup.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: michael@paquier.xyz, x4mmm@yandex-team.ru, noah@leadboat.com, hlinnaka@iki.fi, tgl@sss.pgh.pa.us
Subject: Re: Weird test mixup
In-Reply-To: <ZjNSTsqAEaX4vvEE@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox