From: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
---|---|
To: | Greg Sabino Mullane <htamfids(at)gmail(dot)com> |
Cc: | Masahiro Ikeda <ikedamsh(at)oss(dot)nttdata(dot)com>, Kirill Reshke <reshkekirill(at)gmail(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Allow default \watch interval in psql to be configured |
Date: | 2025-03-14 08:55:39 |
Message-ID: | 02A3B3C0-0FFB-4072-A754-04FC9F2207BB@yesql.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> On 13 Mar 2025, at 15:03, Greg Sabino Mullane <htamfids(at)gmail(dot)com> wrote:
>
> Patch looks good. One minor issue:
>
> greg=# \set WATCH_INTERVAL -1
> invalid value "-1" for "WATCH_INTERVAL": must be greater than 0.00
> greg=# \set WATCH_INTERVAL 0.00
> greg=#
>
> We should disallow 0 as the error message implies
Ah, nice catch, fixed in the attached along with a test for the minimum bound (ie zero).
>> I've long wanted to be able to set the default interval for \watch in psql since I almost never want a 2 second wait.
>
> Curious what other's personal defaults are? I usually use 1 second or 0.5 depending on things.
I rarely use anything higher than 0.5.
--
Daniel Gustafsson

From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2025-03-14 08:58:21 | Re: Add an option to skip loading missing publication to avoid logical replication failure |
Previous Message | vignesh C | 2025-03-14 08:48:46 | Re: Separate GUC for replication origins |