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

From Alexander Korotkov
Subject Re: pgsql: psql: add an optional execution-count limit to \watch.
Date
Msg-id CAPpHfdtgQVRZOwov-Ei4Rh=gQtFE8Hb9uKkO1d_XYmQ2XEXt0g@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: psql: add an optional execution-count limit to \watch.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pgsql: psql: add an optional execution-count limit to \watch.
List pgsql-committers
On Fri, Apr 7, 2023 at 5:00 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Alexander Korotkov <aekorotkov@gmail.com> writes:
> > On Thu, Apr 6, 2023 at 8:18 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >> psql: add an optional execution-count limit to \watch.
>
> > 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.
>
> Huh, yeah, I see it too if I set LANG=ru_RU.utf8 before running psql's
> TAP tests.  It seems unfortunate that none of the buildfarm has noticed
> this.  I guess all the TAP tests are run under C locale?

I wonder if we can setup as least some buildfarm members to exercise
TAP tests on non-C locales.

> > The proposed fix is attached.
>
> LGTM, will push in a bit (unless you want to?)

Please push.

------
Regards,
Alexander Korotkov



pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: psql: add an optional execution-count limit to \watch.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix locale-dependent test case.