Re: int4 or int32 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: int4 or int32
Date
Msg-id 25242.980215225@sss.pgh.pa.us
Whole thread Raw
In response to Re: int4 or int32  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: int4 or int32
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> There were only a few to fix, so I fixed them.

I don't think it's a good idea to write unspecified-width "int" in
the struct decls for Interval and friends.  If the compiler decides
someday that that's int8, things break because the physical size of
Interval etc. is hardwired over in pg_type.h.  Use "int32", or
perhaps revert these to int4.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Generating History
Next
From: Bruce Momjian
Date:
Subject: Re: int4 or int32