OID unsigned long long

Поиск
Список
Период
Сортировка
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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Surviving transaction-ID wraparound, take 2
Следующее
От: Dwayne Miller
Дата:
Сообщение: Bug List