Re: Prevent psql \watch from running queries that return no rows
Greg Sabino Mullane <htamfids@gmail.com>
From: Greg Sabino Mullane <htamfids@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-06-04T18:55:12Z
Lists: pgsql-hackers
Attachments
- psql_watch_exit_on_zero_rows_v2.patch (application/octet-stream) patch v2
On Sat, Jun 3, 2023 at 5:58 PM Michael Paquier <michael@paquier.xyz> wrote: > > Wouldn't something like a target_rows be more flexible? You could use > this parameter with a target number of rows to expect, zero being one > choice in that. > Thank you! That does feel better to me. Please see attached a new v2 patch that uses a min_rows=X syntax (defaults to 0). Also added some help.c changes. Cheers, Greg
Commits
-
Allow \watch queries to stop on minimum rows returned
- f347ec76e2a2 17.0 landed