Re: psql's 001_basic.pl test could fail on very slow machines - Mailing list pgsql-hackers

From Greg Sabino Mullane
Subject Re: psql's 001_basic.pl test could fail on very slow machines
Date
Msg-id CAKAnmmJukC6G00bB-DH2XPLBBk-OWODNdcY2v=KfN-qg-ZKtug@mail.gmail.com
Whole thread
In response to psql's 001_basic.pl test could fail on very slow machines  (Oleg Tselebrovskiy <o.tselebrovskiy@postgrespro.ru>)
Responses Re: psql's 001_basic.pl test could fail on very slow machines
List 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

pgsql-hackers by date:

Previous
From: Xuneng Zhou
Date:
Subject: Re: Refactor recovery conflict signaling a little
Next
From: Fujii Masao
Date:
Subject: Re: brin: Remove duplicate initialization in initialize_brin_buildstate()