From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | Daniel Gustafsson <daniel(at)yesql(dot)se>, 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: | 2024-10-10 03:15:17 |
Message-ID: | CAFj8pRB53mJGEiiik_7dNxVVejYXTO6iScES-en6G5UnGoC5fA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
čt 10. 10. 2024 v 2:02 odesílatel Michael Paquier <michael(at)paquier(dot)xyz>
napsal:
> On Wed, Oct 09, 2024 at 04:24:27PM +0200, Daniel Gustafsson wrote:
> > Fixed.
>
> - double sleep = 2;
> + double sleep = pset.watch_interval;
>
> This forces the use of seconds as unit. The interval values I have
> been using a lot myself are between 0.2s and 0.5s because I usually
> want a lot more granularity in my lookups than the 1s interval. Could
> it be better to allow values lower than 1s or let this value be a
> string with optional "s" or "ms" units?
>
Linux "watch" uses just seconds. If I remember correctly the psql doesn't
use units in settings, so I prefer just the value from interval 0.1 .. 3600
* n
and the number can be rounded to 0.1
Regards
Pavel
> --
> Michael
>
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2024-10-10 03:29:14 | Re: [PATCH] Add some documentation on how to call internal functions |
Previous Message | Bruce Momjian | 2024-10-10 03:08:13 | Re: Doc: typo in config.sgml |