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 1tISta-00EVaG-8I for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Dec 2024 13:24:54 +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 1tIStX-009lQ1-OY for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Dec 2024 13:24:52 +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 1tIStX-009lPr-Ek for pgsql-hackers@lists.postgresql.org; Tue, 03 Dec 2024 13:24:52 +0000 Received: from fhigh-a2-smtp.messagingengine.com ([103.168.172.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIStW-000pSg-84 for pgsql-hackers@lists.postgresql.org; Tue, 03 Dec 2024 13:24:51 +0000 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id A7A271140138; Tue, 3 Dec 2024 08:24:49 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Tue, 03 Dec 2024 08:24:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1733232289; x=1733318689; bh=wq7Z9m4rDK1/wRv/H7LmMl5rcVsEUt+j LxetNFMMy5M=; b=Z5od23hiB9ODAWemO4SKcnqy5EOnu9472QSKoUIeS1bUu+DH 2+E7FRiQ81i64MF8vCN23rSovjEQHk8EbU5PXYpiRrZozE/BoaHc/1FFuBCHZ8Un TDkCp0gym/MbxBM4BNDj2byD7dWhdm+57j3HA/AJbXTW0luY6Vio8EWEDyhZt9pg edsXgamri+5BxN1JCq+aDyuoBbZ5h+ky1Cde3em0+edK/v0DDGyhtLu4Nlwjuq1j JaULReLKtvkgz8bW11B6ZjmazipLGGrd69hxcVRorqlraKOnMcIs/8X0XiIZmTbl yoqwQ4yRAeBLldcypg3R7zU8Uds3n00VFJCA/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1733232289; x= 1733318689; bh=wq7Z9m4rDK1/wRv/H7LmMl5rcVsEUt+jLxetNFMMy5M=; b=l aIXEIicABI+2AFq//l8/BiOHCBhgLJ/2FDFi7wXuVuMo4MXnztMgp46bH8WD4WlS Y+TakskFsoa2sNDnYuneS7EFJ2gQNzKZJx8OX+UovFiP1aAFi/fOl3n6GgxPo6Ti c6VgSGcdIeCS8IZVlCTfhljK95HK5YP0Y8qVbcHFw+ksorRyHnLD7ARqtOSDNNlJ cnOvcFv429AwIHGvyRbhNjJlKRhz6dqQps0DwdSdRhUeWYkc1UWhwyUZ0qPmzZxj wfPn/jCrUAZpZ4y0wR4ZtA0oUVGho6+wK1otFO1s/ZEqnJg/KzXThTagtwLH1jzC JJIXrHEHE22AkrpvlHG0w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrieefgddvfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeen ucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnh htrhgruhhtrdhorhhgqeenucggtffrrghtthgvrhhnpeejhfevhedttefgfffhhfeffefg gffhffelgfeiueeukeehvdehvdefheffvdefueenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhr ghdpnhgspghrtghpthhtohepiedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepth hhohhmrghsrdhmuhhnrhhosehgmhgrihhlrdgtohhmpdhrtghpthhtohephhhlihhnnhgr khgrsehikhhirdhfihdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprgdruhhspd hrtghpthhtohepjhgrphhinhhliheshhhothhmrghilhdrtghomhdprhgtphhtthhopegr nhgurhgvshesrghnrghrrgiivghlrdguvgdprhgtphhtthhopehpghhsqhhlqdhhrggtkh gvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 Dec 2024 08:24:48 -0500 (EST) Message-ID: <50a4c05e-c43e-4e7e-95d2-4b16493073ed@eisentraut.org> Date: Tue, 3 Dec 2024 14:24:47 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Cannot find a working 64-bit integer type on Illumos To: Thomas Munro Cc: Heikki Linnakangas , Tom Lane , Japin Li , Andres Freund , PostgreSQL Hackers References: <20240322165305.6zrtxcmzdrywvmsu@awork3.anarazel.de> <944094.1711128356@sss.pgh.pa.us> <1229869.1711160593@sss.pgh.pa.us> <7cf1dcb7-306f-4418-bf25-bdc75130db10@eisentraut.org> <0e2cc7af-f0c0-418c-b640-e5eb03eaa6e6@eisentraut.org> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 30.11.24 00:42, Thomas Munro wrote: > On Fri, Nov 29, 2024 at 11:12 PM Thomas Munro wrote: >> New idea: let's just redefine PRI...{32,64,PTR} on that platform, >> instead of modifying snprintf.c. > > D'oh, that's not going to fly. gettext() would replace % with > the system's PRId64, so we can't avoid teaching our snprintf.c to > understand Windowsian format strings. Here's a first attempt at that. > Tested a bit by removing the #ifdef WIN32 locally and playing around > with it. CI passes on Windows, and I think that should be exercising > it via existing [U]INT64_FORMAT in various places that would break if > it didn't work. This patch looks good to me. In meson.build, this comment seems to be misplaced by accident: +# Check if __int128 is a working 128 bit integer type, and if so +# define PG_INT128_TYPE to that typename. cdata.set('SIZEOF_VOID_P', cc.sizeof('void *', args: test_c_args)) cdata.set('SIZEOF_SIZE_T', cc.sizeof('size_t', args: test_c_args)) In c.h, you include instead of . Is there a reason for that?