Re: psql's 001_basic.pl test could fail on very slow machines

From: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
To: Oleg Tselebrovskiy <o(dot)tselebrovskiy(at)postgrespro(dot)ru>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql's 001_basic.pl test could fail on very slow machines
Date: 2026-03-09 15:07:05
Message-ID: CAKAnmmJukC6G00bB-DH2XPLBBk-OWODNdcY2v=KfN-qg-ZKtug@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I don't think your new test is really testing the full functionality of
\watch min, but I agree that existing test does not either. How about
something like this?

select now() as start \gset
with x as (select now() - :'start' as howlong)
select 123 from x where howlong < '0.5 second' \watch i=0.2 m=1

Cheers,
Greg

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2026-03-09 15:10:22 Re: brin: Remove duplicate initialization in initialize_brin_buildstate()
Previous Message Xuneng Zhou 2026-03-09 15:02:09 Re: Refactor recovery conflict signaling a little