OID unsigned long long

From: mlw <markw(at)mohawksoft(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: OID unsigned long long
Date: 2001-08-14 02:02:42
Message-ID: 3B7886C2.3E23374D@mohawksoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dwayne Miller 2001-08-14 02:13:43 Bug List
Previous Message Tom Lane 2001-08-14 01:35:05 Re: Surviving transaction-ID wraparound, take 2