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 1nN6Ff-0006oG-2R for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Feb 2022 05:01:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nN6F6-0003Yj-Gy for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Feb 2022 05:00:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nN6F6-0003Ya-7U for pgsql-hackers@lists.postgresql.org; Thu, 24 Feb 2022 05:00:40 +0000 Received: from mx0b-0050f201.pphosted.com ([148.163.141.54]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nN6Ex-0004mo-Uo for pgsql-hackers@postgresql.org; Thu, 24 Feb 2022 05:00:38 +0000 Received: from pps.filterd (m0203370.ppops.net [127.0.0.1]) by mx0b-0050f201.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 21NLrdUQ028149 for ; Thu, 24 Feb 2022 14:00:29 +0900 Received: from sraihe.sra.co.jp (sraihe.sra.co.jp [221.255.117.38]) by mx0b-0050f201.pphosted.com (PPS) with ESMTP id 3ecmvktfpc-1 for ; Thu, 24 Feb 2022 14:00:28 +0900 Received: from srascb.sra.co.jp (srascb [133.137.8.65]) by sraihe.sra.co.jp (Postfix) with ESMTP id 20D042A684B for ; Thu, 24 Feb 2022 14:00:28 +0900 (JST) Received: from sranhm.sra.co.jp (osspc47 [133.137.174.164]) by srascb.sra.co.jp (Postfix) with ESMTP id 125D5580253 for ; Thu, 24 Feb 2022 14:00:28 +0900 (JST) Received: from DESKTOP-8IE80ES (sraihg-15-154.sra.co.jp [133.137.15.154]) by sranhm.sra.co.jp (Postfix) with SMTP id EBC813415DC; Thu, 24 Feb 2022 14:00:27 +0900 (JST) Date: Thu, 24 Feb 2022 14:00:26 +0900 From: KAWAMOTO Masaya To: Tatsuo Ishii Cc: pgsql-hackers@postgresql.org Subject: Re: Typo in pgbench messages. Message-Id: <20220224140026.1073bf41bb59fc4f07446fee@sraoss.co.jp> In-Reply-To: <20220224.121555.603427016970782829.t-ishii@sranhm.sra.co.jp> References: <20220224115622.41e671e3449ebd8c270e9103@sraoss.co.jp> <20220224.121555.603427016970782829.t-ishii@sranhm.sra.co.jp> X-Mailer: Sylpheed Pro 2.7.0 (GTK+ 2.24.30; i686-pc-mingw32; Pro 2.7.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Thu__24_Feb_2022_14_00_26_+0900_y62/JFeltvRRKNoL" X-Proofpoint-GUID: 9Oo0vCkic2vPlgZvRz8TEhrbuSWwbEpn X-Proofpoint-ORIG-GUID: 9Oo0vCkic2vPlgZvRz8TEhrbuSWwbEpn X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10267 signatures=681306 X-Proofpoint-Spam-Details: rule=spam_low_notspam policy=spam_low score=0 impostorscore=0 clxscore=1034 mlxscore=0 lowpriorityscore=0 malwarescore=0 spamscore=0 priorityscore=1501 bulkscore=0 phishscore=0 mlxlogscore=926 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202240028 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --Multipart=_Thu__24_Feb_2022_14_00_26_+0900_y62/JFeltvRRKNoL Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Thanks for your comment! Sorry, I did not attach the patch file. This patch focas on master branch. Best regards, On Thu, 24 Feb 2022 12:15:55 +0900 (JST) Tatsuo Ishii wrote: > > Hi, > > > > I found messages inserted a space before the "%" in pgbench. > > I think this is typo because there are no space before the "%" in other messages. > > What do you think? > > I think you are right. In English there's should be no space between number and "%". > AFAIK other parts of PostgreSQL follow the rule. > > > diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c > > index f166a77e3a..4ebe5e6ea4 100644 > > --- a/src/bin/pgbench/pgbench.c > > +++ b/src/bin/pgbench/pgbench.c > > @@ -5598,11 +5598,11 @@ printResults(StatsData *total, > > return; > > > > if (throttle_delay && latency_limit) > > - printf("number of transactions skipped: " INT64_FORMAT " (%.3f %%)\n", > > + printf("number of transactions skipped: " INT64_FORMAT " (%.3f%%)\n", > > total->skipped, 100.0 * total->skipped / total->cnt); > > > > if (latency_limit) > > - printf("number of transactions above the %.1f ms latency limit: " INT64_FORMAT "/" INT64_FORMAT " (%.3f %%)\n", > > + printf("number of transactions above the %.1f ms latency limit: " INT64_FORMAT "/" INT64_FORMAT " (%.3f%%)\n", > > latency_limit / 1000.0, latency_late, ntx, > > (ntx > 0) ? 100.0 * latency_late / ntx : 0.0); > > Looks good to me. > > Best reagards, > -- > Tatsuo Ishii > SRA OSS, Inc. Japan > English: http://www.sraoss.co.jp/index_en.php > Japanese:http://www.sraoss.co.jp > > -- KAWAMOTO Masaya SRA OSS, Inc. Japan --Multipart=_Thu__24_Feb_2022_14_00_26_+0900_y62/JFeltvRRKNoL Content-Type: application/octet-stream; name="typo_in_pgbench_messages.patch" Content-Disposition: attachment; filename="typo_in_pgbench_messages.patch" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3NyYy9iaW4vcGdiZW5jaC9wZ2JlbmNoLmMgYi9zcmMvYmluL3BnYmVuY2gv cGdiZW5jaC5jCmluZGV4IGYxNjZhNzdlM2EuLjRlYmU1ZTZlYTQgMTAwNjQ0Ci0tLSBhL3NyYy9i aW4vcGdiZW5jaC9wZ2JlbmNoLmMKKysrIGIvc3JjL2Jpbi9wZ2JlbmNoL3BnYmVuY2guYwpAQCAt NTU5OCwxMSArNT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