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 1lJsyz-00018V-IK for pgsql-committers@arkaria.postgresql.org; Wed, 10 Mar 2021 07:10:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJsyy-0006Ga-Dm for pgsql-committers@arkaria.postgresql.org; Wed, 10 Mar 2021 07:10:12 +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 1lJsyy-0006GR-8G for pgsql-committers@lists.postgresql.org; Wed, 10 Mar 2021 07:10:12 +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 1lJsyv-0000Ga-Dq for pgsql-committers@lists.postgresql.org; Wed, 10 Mar 2021 07:10:11 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id EA91F167D; Wed, 10 Mar 2021 02:10:07 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 10 Mar 2021 02:10:08 -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=5q7nFU0T7yhpPAeu0pSWgpJJ0hi DYrzICbbmqLrf3m4=; b=DytjUos8Ewo/7qQzVjSYqju3/SNSJalA2AYqINba5ei xsEGvozFQ9/s9smfehEcnDp/46t6kZA5PrmDKmvNusl4qi/wkLVhicIfc9klFxd1 +nYo9fTBsXz1lY61RWMCk/5mOjHcg30qCj4bUdi5MtKMbsFU+89U4vSWwCeZ7Qbx vBWJhoYOaHWA79HWxfmGMkOGgbbN8qQXDx+ZiWTMa0r/qAJ3ZfSF/qEOjo7Jlrpd BXRirpZpgjOFpuUiuc7MYrDmQqrd4vKyc+yPdXs42KwAG83sDrULzAmLXyOAB8ag NbOegX68lpkJ2+lf1dAYxW/gBNOwaNWzhQT1C+KdKuw== 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=5q7nFU 0T7yhpPAeu0pSWgpJJ0hiDYrzICbbmqLrf3m4=; b=SewG7+L5/vd7m8+saF2SIt 5E0nwEMqt21jimJwSlmXVja0w0gDNAhcQaUOnzE07rbQk7nYu9FKPLmqkQ5JhKZ0 Ytod60EiCic1+clGH/flzKBettlu07B6VAApfhTLDvPNrwQChd9hpsF+MeQ+ldaE /McJDltdGwjn3Fi2Q6XIfXG/nxhx81f5mleXzctK9v+OBB+Ui4dBhkQXyKwFsi2V bMMkMZXkOOkzyE5AZNblvmM6mnEEx8j9IOVskd7DrSbul98ktb32Sa/6wf7dpZPk lTJEsxFG8Kyr9S5xaOxWozVRlfz/qB7HtR23/hxYDoHQX4m1GvuTzL9VXdaZJxVQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddujedgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeffudeffeelgffhkedukeekvedv udfgieetkeekudelfeevhffhffdtudffieeutdenucffohhmrghinhepphhoshhtghhrvg 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 649E6240057; Wed, 10 Mar 2021 02:10:05 -0500 (EST) Date: Wed, 10 Mar 2021 16:10:02 +0900 From: Michael Paquier To: Thomas Munro Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: pgbench: Refactor thread portability support. Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="z4E0hb+p42uP2fTe" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --z4E0hb+p42uP2fTe 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: Refactor thread portability support. >=20 > Instead of maintaining an incomplete emulation of POSIX threads for > Windows, let's use an extremely minimalist macro-based abstraction for > now. A later patch will extend this, without the need to supply more > complicated pthread emulation code. (There may be a need for a more > serious portable thread abstraction in later projects, but this is not > it.) This one is causing a failure in whelk: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dwhelk&dt=3D2021-0= 3-10%2006%3A41%3A53 src/bin/pgbench/pgbench.c(6154): warning C4024: '_beginthreadex' : different types for formal and actual parameter 3 [C:\\buildfarm\\buildenv\= \HEAD\\pgsql.build\\pgbench.vcxproj] -- Michael --z4E0hb+p42uP2fTe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmBIcMoACgkQnvQgOdby QH3ASA/5Acip0lkeYzTz0kjLbrFTU0YlUuawMUwf6rnL8zafQ055+eZp1pi4lygy MIjW4ZlRJ97dHJDmsLlMyyQtCqbyEs90GZC0aJdPkUs6A2DP9itSRJWbibN0rcR/ I0x+SDyAE3Y7R/z8RfAOM0oYulib+/sSfF22urfvRdY1C+RXT9YI8cp2i0fdGoqw qIv6AYxh73ElbBAUjqwiqGs2SMMfXX4s9vfivFSM8LUzgGy+17YcMoOGu3cTEAXG i0GOolmxzI9Pp7nplMZCVzDI/2K70e8E3TQdDXMUTlCbicCeTVJDpxygcjl8c3IO B5S0TfUh9aUR/pCEH6d2GL3iOOs+yrl1MlLXJeUAxOp5KFFUu/W/0ToK0G4C5XRw yemmvvzehxnqIV2SQwR4Rein9AYfVeyGTwpw1NbJMVl8HFLNS4QcRhj9kGFwTG3y cNpmW5PqzL0xxs3NtG7NnhCRGCf2ow2rXWoRJsJwKWJVDTivLtZsmPkaS6FtR1pK pHR7sqyIfTHJCHXChCLSLxBNIkZY7qxnT3MQxtHlIgin0EX7EfC8hWpaTcc2XLWw qJ+4HNoBvuuFNHGFSmn+aW712mVMeNWoSpLZSZnKpiAvI058i2jT0QCGvesAGMke ak/XGPrbjyezrj4Kb4q0CVslvhcG6bklJbRw43xqtTSv2J7lU3s= =Dpgu -----END PGP SIGNATURE----- --z4E0hb+p42uP2fTe--