Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pkmdi-0002cJ-Qn for pgsql-committers@arkaria.postgresql.org; Fri, 07 Apr 2023 14:00:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pkmdh-0007Tl-MT for pgsql-committers@arkaria.postgresql.org; Fri, 07 Apr 2023 14:00:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pkmdh-0007TO-Ft for pgsql-committers@lists.postgresql.org; Fri, 07 Apr 2023 14:00:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pkmdf-0005S9-9n for pgsql-committers@lists.postgresql.org; Fri, 07 Apr 2023 14:00:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 337E0N1u2929175; Fri, 7 Apr 2023 10:00:23 -0400 From: Tom Lane To: Alexander Korotkov cc: pgsql-committers@lists.postgresql.org, Andrew Dunstan Subject: Re: pgsql: psql: add an optional execution-count limit to \watch. In-reply-to: References: Comments: In-reply-to Alexander Korotkov message dated "Fri, 07 Apr 2023 15:04:00 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2929173.1680876023.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Fri, 07 Apr 2023 10:00:23 -0400 Message-ID: <2929174.1680876023@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alexander Korotkov writes: > On Thu, Apr 6, 2023 at 8:18 PM Tom Lane 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? > The proposed fix is attached. LGTM, will push in a bit (unless you want to?) regards, tom lane