Re: Allow default \watch interval in psql to be configured - Mailing list pgsql-hackers

From Greg Sabino Mullane
Subject Re: Allow default \watch interval in psql to be configured
Date
Msg-id CAKAnmmLb7=eGpFqft3vpk=p6iWaGVwzmDt0+bdU=xvOnWGw_Lg@mail.gmail.com
Whole thread Raw
In response to Re: Allow default \watch interval in psql to be configured  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: Allow default \watch interval in psql to be configured
List pgsql-hackers
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

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.


Cheers,
Greg

--
Enterprise Postgres Software Products & Tech Support

pgsql-hackers by date:

Previous
From: Alexandra Wang
Date:
Subject: Re: SQL:2023 JSON simplified accessor support
Next
From: vignesh C
Date:
Subject: Re: Separate GUC for replication origins