Re: pgsql: psql: add an optional execution-count limit to \watch.

From: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: psql: add an optional execution-count limit to \watch.
Date: 2023-04-07 12:04:00
Message-ID: CAPpHfdv+10Uk6FWjsh3+ju7kHYr76LaRXbYayXmrM7FBU-=Hgg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Hi!

On Thu, Apr 6, 2023 at 8:18 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> psql: add an optional execution-count limit to \watch.
>
> \watch can now be told to stop after N executions of the query.

This commit makes tests fail for me. psql parses 'i' option of
'\watch' using locale-aware strtod(), but 001_basic.pl uses hard-coded
decimal separator. The proposed fix is attached.

------
Regards,
Alexander Korotkov

Attachment Content-Type Size
psql_test_fix.patch application/octet-stream 493 bytes

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2023-04-07 14:00:23 Re: pgsql: psql: add an optional execution-count limit to \watch.
Previous Message Andres Freund 2023-04-07 08:28:08 pgsql: Fix copy-paste bug in 12f3867f553 triggering an assert after a w

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2023-04-07 12:06:55 Re: [PATCH] Allow Postgres to pick an unused port to listen
Previous Message Daniel Gustafsson 2023-04-07 11:28:54 Re: Should vacuum process config file reload more often