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 1tIxGK-0005nN-Nx for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Dec 2024 21:50:24 +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 1tIxGI-002gKx-7T for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Dec 2024 21:50:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIxGH-002gKo-UH for pgsql-hackers@lists.postgresql.org; Wed, 04 Dec 2024 21:50:23 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIxGG-0014ur-Dr for pgsql-hackers@lists.postgresql.org; Wed, 04 Dec 2024 21:50:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4B4Lo5hL2401112; Wed, 4 Dec 2024 16:50:05 -0500 From: Tom Lane To: Thomas Munro cc: Tomas Vondra , Peter Eisentraut , Heikki Linnakangas , Japin Li , Andres Freund , PostgreSQL Hackers Subject: Re: Cannot find a working 64-bit integer type on Illumos In-reply-to: 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> <50a4c05e-c43e-4e7e-95d2-4b16493073ed@eisentraut.org> <227! 6817.1733293172@sss.pgh.pa.us> <2385947.1733341279@sss.pgh.pa.us> <2397643.1733347237@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Thu, 05 Dec 2024 10:44:06 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2401110.1733349005.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 04 Dec 2024 16:50:05 -0500 Message-ID: <2401111.1733349005@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > On Thu, Dec 5, 2024 at 10:20=E2=80=AFAM Tom Lane wro= te: >> Another rather serious problem here is that we no longer provide >> macro PG_INT64_TYPE, which seems rather likely to break applications >> that were relying on it. That is part of our external API, we >> can't just remove it on a whim. > I had concluded that PG_INT64_TYPE wasn't part of our external API but > pg_int64 was, based on the comment: > /* Define a signed 64-bit integer type for use in client API declaratio= ns. */ > -typedef PG_INT64_TYPE pg_int64; > +typedef int64_t pg_int64; Oh, hmm, maybe so. OTOH, that typedef breaks the idea of #define'ing PG_INT64_TYPE as int64_t. We need this header to be readable without any prior system headers, so I'm afraid we're all the way back to making configure derive the name of a 64-bit type. regards, tom lane