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 1lJsxl-00015h-6l for pgsql-committers@arkaria.postgresql.org; Wed, 10 Mar 2021 07:08:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJsxj-0005fh-SW for pgsql-committers@arkaria.postgresql.org; Wed, 10 Mar 2021 07:08:55 +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 1lJsxj-0005f5-Mn for pgsql-committers@lists.postgresql.org; Wed, 10 Mar 2021 07:08:55 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJsxf-0000F8-Nd for pgsql-committers@lists.postgresql.org; Wed, 10 Mar 2021 07:08:54 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id E9B971679; Wed, 10 Mar 2021 02:08:49 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 10 Mar 2021 02:08:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=XjUg9F1XsBav3+anHGw8fqdBDVz UTo80NS/wWmMBKh4=; b=xIAVBgoWTT0/Q0Z45qzLOXE6Exsup4iFG/pJj4XOD5S o7oLs5Qk09CQo23t9NAZwsBW5O/LDqKcS4gLiyQcFpnNE0Dd+JtQi+Lljfg94uFd BkD8RahlaDZ+MiYlFaQ7mD00KioVG0rwXvOnBkjWGS09TCG52AtK7AJcAR290cOo M/F+VDjCFOPGHjrnZPaMCLFKxEfBMFgPn2XUPQp6H/3ZvKpPo6QSuyOeYu3i6BuR ELVisyEvdKydBHy887JoXPUJubWjKgiLx11SdwcYu8QptFgnn8wjw0ad81pIIQgm It/dPBLfU9YdmQF2fFbOEqx7xK0cCYo0PEQlQO0UTyg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=XjUg9F 1XsBav3+anHGw8fqdBDVzUTo80NS/wWmMBKh4=; b=HZVFzp44xGOy8w5H8bx70w /Lz6+XnouOpa/iYLezWkEbjbfyKDEG4EVIDOifITXgKjflJ4jCXTpfa/bzybn7iu +qIwNnmMKNMsgD0tOIW6PgnlDvKhBSE18KJ1BJ8LM0XJhw71AlE2wR1l4+ciKGOT g2+LAwU/5In0PF/8iRsm5txYvLXL8DlBKHOrEg4JkEDCJXN/KCFHNLEkibATUzb/ ctrzroOJn7gUapd8Vv92xjLac6vtX+0vgGXttJenUPSP/RQexGQU/WHvA7+00S5t CyipLSdXR/vX1MGepdKylRQd17fi4fgoSQdL8mltGc2g0N98daN/s63Jy5uk6rWg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddujedgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtroertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeejfeetleelheejgeevveehfeek vdehleevhfejudfghfffuddtjefgleffuddvhfenucffohhmrghinhepphhoshhtghhrvg hsqhhlrdhorhhgnecukfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqh huihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id F26EE240054; Wed, 10 Mar 2021 02:08:47 -0500 (EST) Date: Wed, 10 Mar 2021 16:08:44 +0900 From: Michael Paquier To: Thomas Munro Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: pgbench: Improve time logic. Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WrCXUwcjbAPcWzDl" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --WrCXUwcjbAPcWzDl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Thomas, On Wed, Mar 10, 2021 at 04:52:01AM +0000, Thomas Munro wrote: > pgbench: Improve time logic. >=20 > Instead of instr_time (struct timespec) and the INSTR_XXX macros, > introduce pg_time_usec_t and use integer arithmetic. Don't include the > connection time in TPS unless using -C mode, but report it separately. The buildfarm is complaining after this commit with lapwing: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dlapwing&dt=3D2021= -03-10%2006%3A40%3A10 pgbench.c:3569:6: error: format '%ld' expects argument of type 'long int', but argument 6 has type 'pg_time_usec_t' [-Werror=3Dformat] -- Michael --WrCXUwcjbAPcWzDl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmBIcHwACgkQnvQgOdby QH26KA//aMmkFpGkqm+nzurAOcp9/HqoECDQiEbJPW8W8uCqSZ6AsyHYK7mTpbJP pyi/7Oxez1pa1Gz44wymVi2U1RY+6C7ookGyMWJlp3cfaHauKdxdiEBe+ztqAV+r pHAu7o6EQR9LMirHSi8Ey6taDcnRhbI3urephWEZfF/2hSEbJFl4p2AXCs0hI4CF RZA4HfG//Nk2d5Np9U5DieacswqNHQdKeVA6ftvuiKTlH3O6cuTm5AA2L6mZcUHo dtU+tyh9phcDfd5lytzyCgbFRCtAkyubFJFp0Uoeh5EOA6OYcgo61sKCEle6QdzA w51fxxzqTL0RZbOD7SO1LzoU0FKiQnLxuCJcCRJkQp2XYVVFIIYlAnPirNsKJ+DA MHU48NZA983VOfUztHN72YaHpTM/gXws+zTbaaAePWnbE/abPjoQ4ZlZIZsHgRNe vBYuDx+Y112ILRAScJnmrjyUddeZ0FuCJxwbaKis/OL2zhAFvV194MFQDsCJXMyh 9ec9BKWY2eLVDwCkD1O94QbszlN08PkkYjwAdbxI58/fEwKdZXzbwsDm5HM075k7 A4jQNu3y4aAlJNWw2SFf+HBSa9aFYUUwP0PmNIyt5HDzlTmY0DoaNb+H/YAfv4kM b65dvLpf0gkuiGWKzeFQfCkdAGKxlQ36y3cwA55XG28eoV67N7c= =6Uqo -----END PGP SIGNATURE----- --WrCXUwcjbAPcWzDl--