Re: Prevent psql \watch from running queries that return no rows

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Greg Sabino Mullane <htamfids@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2023-08-29T10:02:48Z
Lists: pgsql-hackers
> On 22 Aug 2023, at 23:23, Greg Sabino Mullane <htamfids@gmail.com> wrote:
> 
> Thank you for the feedback, everyone. Attached is version 4 of the patch, featuring a few tests and minor rewordings.

I went over this once more, and pushed it along with pgindenting.  I did reduce
the number of tests since they were overlapping and a bit too expensive to have
multiples of. Thanks for the patch!

--
Daniel Gustafsson




Commits

  1. Allow \watch queries to stop on minimum rows returned