Re: Cannot find a working 64-bit integer type on Illumos - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: Cannot find a working 64-bit integer type on Illumos
Date
Msg-id CA+hUKGKXEdVSfR6UHXfR3tSQ+TfBNk-ssYmO2F0wCdw7qcx86Q@mail.gmail.com
Whole thread Raw
In response to Re: Cannot find a working 64-bit integer type on Illumos  (Peter Eisentraut <peter@eisentraut.org>)
Responses Re: Cannot find a working 64-bit integer type on Illumos
List pgsql-hackers
On Thu, Apr 18, 2024 at 8:47 PM Peter Eisentraut <peter@eisentraut.org> wrote:
> I'm not sure I understand the problem here.  Do you mean that in theory
> a platform's PRId64 could be something other than "l" or "ll"?

Yes.  I don't know why anyone would do that, and the systems I checked
all have the obvious definitions, eg "ld", "lld" etc.  Perhaps it's an
acceptable risk?  It certainly gives us a tidier result.

For discussion, here is a variant that fully embraces <inttypes.h> and
the PRI*64 macros.

Attachment

pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: improve performance of pg_dump --binary-upgrade
Next
From: Daniel Gustafsson
Date:
Subject: Re: improve performance of pg_dump --binary-upgrade