Re: int4 or int32

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: int4 or int32
Дата
Msg-id 25242.980215225@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: int4 or int32  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: int4 or int32  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Generating History
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: int4 or int32