pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Cc: Andrey M. Borodin <x4mmm@yandex-team.ru>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Cc: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Subject: Re: Injection points: some tools to wait and wake
Date: Wed, 28 Feb 2024 13:26:46 +0900
Message-ID: <Zd62BjrRH2LRoOll@paquier.xyz> (raw)
In-Reply-To: <Zd3mLyqNPQRqBOlp@ip-10-97-1-34.eu-west-3.compute.internal>
References: <ZdXjfd+1JfTjASVg@ip-10-97-1-34.eu-west-3.compute.internal>
	<Zda5KYdMyrIqdPA5@paquier.xyz>
	<Zdb/GNeuheXi2ffg@ip-10-97-1-34.eu-west-3.compute.internal>
	<ZdwMFfl5j3SYC-Cx@paquier.xyz>
	<19DE6301-C7C1-44C3-AB23-9574CD8C0579@yandex-team.ru>
	<Zd0e8SAwwA4U5UW_@paquier.xyz>
	<6426C4A0-DFFA-4B3B-B49E-CA1A6F40C81B@yandex-team.ru>
	<Zd3Cn/u+sbDStsMI@ip-10-97-1-34.eu-west-3.compute.internal>
	<9A364318-C150-469D-9BA9-6C9298B7C6E8@yandex-team.ru>
	<Zd3mLyqNPQRqBOlp@ip-10-97-1-34.eu-west-3.compute.internal>

On Tue, Feb 27, 2024 at 01:39:59PM +0000, Bertrand Drouvot wrote:
> So, I'm ok with the new helper too.

If both of you feel strongly about that, I'm OK with introducing
something like that.  Now, a routine should be only about waiting on
pg_stat_activity to report something, as for the logs we already have
log_contains().  And a test may want one check, but unlikely both.
Even if both are wanted, it's just a matter of using log_contains()
and the new routine that does pg_stat_activity lookups.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (46+ messages)  latest in thread

Message-ID: <Zd62BjrRH2LRoOll@paquier.xyz>
Permalink:  ../Zd62BjrRH2LRoOll@paquier.xyz/
Also on:    postgresql.org/message-id/Zd62BjrRH2LRoOll@paquier.xyz

 · 

reply

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, bertranddrouvot.pg@gmail.com, x4mmm@yandex-team.ru, pgsql-hackers@lists.postgresql.org, ashutosh.bapat.oss@gmail.com
  Subject: Re: Injection points: some tools to wait and wake
  In-Reply-To: <Zd62BjrRH2LRoOll@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