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

x4mmm@yandex-team.ru

From: "Andrey M. Borodin" <x4mmm@yandex-team.ru>
To: Michael Paquier <michael@paquier.xyz>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Heikki Linnakangas <hlinnaka@iki.fi>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>, Daniel Gustafsson <daniel@yesql.se>
Date: 2024-10-10T05:47:25Z
Lists: pgsql-hackers

Attachments


> On 10 Oct 2024, at 04:49, Michael Paquier <michael@paquier.xyz> wrote:
> 
> How about something like the simple patch attached?

Let’s add a comment to tight-loop if statement. And a test for the case.


Best regards, Andrey Borodin.

Commits

  1. psql: Fix \watch when using interval values less than 1ms