Re: waiting for reload in tests - Mailing list pgsql-hackers

From Andres Freund
Subject Re: waiting for reload in tests
Date
Msg-id 20220510015251.ye76w5amkb25f2vi@alap3.anarazel.de
Whole thread Raw
In response to Re: waiting for reload in tests  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

On 2022-05-09 21:42:20 -0400, Tom Lane wrote:
> Michael Paquier <michael@paquier.xyz> writes:
> > On Mon, May 09, 2022 at 09:29:32PM -0400, Tom Lane wrote:
> >> Less brute force: wait for "SHOW variable-you-changed" to report the
> >> value you expect.
> 
> > This method may still be unreliable in some processes like a logirep
> > launcher/receiver or just autovacuum, no?

Yept, that's the problem. In my case it's the startup process...


> Yeah, if your test case requires knowing that some background process
> has gotten the word, it's a *lot* harder.  I think we'd have to add a
> last-config-update-time column in pg_stat_activity or something like that.

That's basically what I was referencing with global barriers...

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: [PoC] Improve dead tuple storage for lazy vacuum
Next
From: "Jonathan S. Katz"
Date:
Subject: Re: 2022-05-12 release announcement draft