OID unsigned long long

Поиск
Список
Период
Сортировка
От mlw
Тема OID unsigned long long
Дата
Msg-id 3B7886C2.3E23374D@mohawksoft.com
обсуждение исходный текст
Ответы Re: OID unsigned long long  (Larry Rosenman <ler@lerctr.org>)
Re: OID unsigned long long  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: OID unsigned long long  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

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