int4 or int32

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема int4 or int32
Дата
Msg-id Pine.LNX.4.21.0011152031320.779-100000@peter.localdomain
обсуждение исходный текст
Ответы Re: int4 or int32  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Which one of these should we use?

int4 is a data type, int32 isn't.  c.h has DatumGetInt8, but no
DatumGetInt64; it also has DatumGetInt32 but no DatumGetInt4.  fmgr has
PG_GETARG_INT32 et al.  Inconsistency everywhere.

The C standard has things like int32_t, but technically there's no
guarantee that int32 is really 32 bits, you only know sizeof(int32) == 4.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: termcap and curses
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: Syslog Facility Patch