Re: Should we represent temp files as unsigned long int instead of signed long int type? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Should we represent temp files as unsigned long int instead of signed long int type?
Date
Msg-id 1061734.1698281389@sss.pgh.pa.us
Whole thread Raw
In response to Re: Should we represent temp files as unsigned long int instead of signed long int type?  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> In the mood of removing long because it may be 4 bytes or 8 bytes
> depending on the environment, I'd suggest to change it to either int64
> or uint64.  Not that it matters much for this specific case, but that
> makes the code more portable.

Then you're going to need a not-so-portable conversion spec in the
snprintf call.  Not sure it's any improvement.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Should we represent temp files as unsigned long int instead of signed long int type?
Next
From: Daniele Varrazzo
Date:
Subject: Re: libpq async connection and multiple hosts