OID unsigned long long - Mailing list pgsql-hackers

From mlw
Subject OID unsigned long long
Date
Msg-id 3B7886C2.3E23374D@mohawksoft.com
Whole thread Raw
Responses Re: OID unsigned long long
Re: OID unsigned long long
Re: OID unsigned long long
List pgsql-hackers
I am thinking about embarking on changing the typedef of OID to unsigned long
long.

My plan is to make it conditional at configure time, i.e.

#ifdef OID_ULONGLONG
typedef unsigned long long Oid;
#define OID_MAX  ULLONG_MAX
#else
typedef unsigned int Oid;
#define OID_MAX  UINT_MAX
#endif

Aside from adding %llu to all the %u everywhere an OID is used in a printf, and
any other warnings, are there any other things I should be specially concerned
about?


-- 
5-4-3-2-1 Thunderbirds are GO!
------------------------
http://www.mohawksoft.com


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Surviving transaction-ID wraparound, take 2
Next
From: Dwayne Miller
Date:
Subject: Bug List