int4 or int32

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: int4 or int32
Date: 2000-11-15 19:41:08
Message-ID: Pine.LNX.4.21.0011152031320.779-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net http://yi.org/peter-e/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2000-11-15 19:46:01 AWARD WINNING - SPECIAL NOTICE !!
Previous Message Larry Rosenman 2000-11-15 19:38:08 Re: Syslog Facility Patch