Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFM5c-00Ca9B-Fs for pgsql-hackers@arkaria.postgresql.org; Sun, 24 Nov 2024 23:32:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tFM5Z-00A6RB-Ei for pgsql-hackers@arkaria.postgresql.org; Sun, 24 Nov 2024 23:32:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFM5Z-00A6QR-3d for pgsql-hackers@lists.postgresql.org; Sun, 24 Nov 2024 23:32:25 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFM5R-003bUl-FL for pgsql-hackers@postgresql.org; Sun, 24 Nov 2024 23:32:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Content-Transfer-Encoding:Content-Type: Mime-Version:References:In-Reply-To:From:Subject:Cc:To:Message-Id:Date:Sender :Reply-To:Content-ID:Content-Description; bh=HRkImK79uzl1jLyDLV5My+4nW/GEg+kXsqTAzMVUMMc=; b=3DTpa3w7HCGzEjTgVABGUZWHAB +PP/eeCSJaIZ1U3uovMcSz0/Cuqdi/2ISdc0FavJWCrQ23/o/RrxMiIPzLfoSM1tDhB6masSE4APQ sA+ld2l3L4T+BfuwkXuGma6JGolMzaIc5siyzfNec1a5/Gs2xUI5WwappIx8fBlYWvBzEpyBWPrYV 8T7ALRcsFXkj5hLUjfH3BHBN4+W8Dw3G120jBEWJfo/XMw1pwHBigzpE6PCm4SiuFSFOI1eTTl8iZ GQNn1BMkL8JHM25qArxF7CJsdU9yInjl8UTMIkMJXl3nJWwuB/Ys8wO/Geri4JWKomSX4Lne9Hi4Z ZI3QLfYQ==; Received: from [2409:11:4120:300:e895:be93:1159:b4d1] (helo=localhost) by meldrar.postgresql.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94.2) (envelope-from ) id 1tFM5N-008xbL-2f; Sun, 24 Nov 2024 23:32:15 +0000 Date: Mon, 25 Nov 2024 08:31:55 +0900 (JST) Message-Id: <20241125.083155.1820744655877715597.ishii@postgresql.org> To: masao.fujii@oss.nttdata.com Cc: btogiwarayuushi@oss.nttdata.com, pgsql-hackers@postgresql.org Subject: Re: Fix for Extra Parenthesis in pgbench progress message From: Tatsuo Ishii In-Reply-To: <95f1100e-e59b-41b7-a406-f865c2e69db7@oss.nttdata.com> References: <85fe426d-248a-47f7-8784-22af811ee572@oss.nttdata.com> <20241108.114713.484828673471024549.ishii@postgresql.org> <95f1100e-e59b-41b7-a406-f865c2e69db7@oss.nttdata.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2409:11:4120:300:e895:be93:1159:b4d1 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Fujii-san, > On 2024/11/08 11:47, Tatsuo Ishii wrote: >> I think you need to adjust >> fprintf(stderr, "%*c\r", chars - 1, ' '); /* Clear the current line */ >> to: >> fprintf(stderr, "%*c\r", chars, ' '); /* Clear the current line */ >> since now chars does not consider the EOL char. By clearing chars - 1, >> the closing parenthesis will be left on the screen. > > You're right! I've updated the patch and attached v4. > > About the back-patch: initially, there were concerns it might be too > invasive, > as you told upthread. However, after our discussion, I think the > latest version > is straightforward enough, and I'm okay with back-patching > it. Thoughts? > > Since the minor release freeze is already in effect, if we commit this > patch, > we'll need to wait until the next minor releases are out next week > before > the commit and back-patch. Now that two minor releases are out, are you going to commit and back-patch this? -- Tatsuo Ishii SRA OSS K.K. English: http://www.sraoss.co.jp/index_en/ Japanese:http://www.sraoss.co.jp