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

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Prevent psql \watch from running queries that return no rows
Дата
Msg-id ZHu3li_s4hS0XW9n@paquier.xyz
обсуждение исходный текст
Ответ на Prevent psql \watch from running queries that return no rows  (Greg Sabino Mullane <htamfids@gmail.com>)
Ответы Re: Prevent psql \watch from running queries that return no rows
Список pgsql-hackers
On Fri, Jun 02, 2023 at 11:47:16AM -0400, Greg Sabino Mullane wrote:
> * Not completely convinced of the name "zero" (better than
> "stop_when_no_rows_returned"). Considered adding a new x=y argument, or
> overloading c (c=-1) but neither seemed very intuitive. On the other hand,
> it's tempting to stick to a single method moving forward, although this is
> a boolean option not a x=y one like the other two.

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.
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Docs: Encourage strong server verification with SCRAM
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Implement generalized sub routine find_in_log for tap test