Re: \watch 0 or \watch 0.00001 doesn't do what I want

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: "Andrey M(dot) Borodin" <x4mmm(at)yandex-team(dot)ru>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Daniel Gustafsson <daniel(at)yesql(dot)se>
Subject: Re: \watch 0 or \watch 0.00001 doesn't do what I want
Date: 2024-10-14 03:29:31
Message-ID: ZwyQG0ThNBQnSEzl@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Oct 13, 2024 at 12:04:23PM +0900, Michael Paquier wrote:
> + /* Tight loop, no wait needed */
> + if (sleep_ms == 0)
>
> Okay about this addition.
>
> +psql_like($node, sprintf('SELECT 1 \watch c=3 i=%g', 0.0001),
> + qr/1\n1\n1/, '\watch with 3 iterations');
>
> And I am fine with this addition as well, for the sleep_ms == 0 case.

I have done an extra lookup, tweaked a few things, and backpatched
that down to v16.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message jian he 2024-10-14 03:38:47 Re: Better error reporting from extension scripts (Was: Extend ALTER OPERATOR)
Previous Message Soumyadeep Chakraborty 2024-10-14 00:31:00 Re: Use heap scan routines directly in vac_update_datfrozenxid()