Allow default \watch interval in psql to be configured
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-10-09T13:08:52Z
Lists: pgsql-hackers
Attachments
- 0001-Make-default-watch-interval-configurable.patch (application/octet-stream) patch 0001
Scratching an old itch; 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. The interval can of course be set by passing it to \watch but it's handy during testing and debugging to save that with just quick \watch. The attached adds a new variable, WATCH_INTERVAL, which is used as the default value in case no value is defined when executing the command. The defualt of this remains at 2 seconds as it is now. The count and min_rows values are not affected by this as those seem less meaningful to set defaults on. -- Daniel Gustafsson
Commits
-
psql: Fix incorrect equality comparison
- 0f3604a518f8 18.0 landed
-
psql: Make test robust against locale variations
- 1eb399366ed6 18.0 landed
-
psql: Make default \watch interval configurable
- 1a759c83278f 18.0 landed