Re: [HACKERS] Should logtape.c blocks be of type long?

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [HACKERS] Should logtape.c blocks be of type long?
Дата
Msg-id CA+TgmoYc59qwrAiQYsRw5cVeVo+MgK4Mp8q7V-n8HXfd+BL=_A@mail.gmail.com
обсуждение исходный текст
Ответ на [HACKERS] Should logtape.c blocks be of type long?  (Peter Geoghegan <pg@bowt.ie>)
Список pgsql-hackers
On Sun, Feb 26, 2017 at 2:44 AM, Peter Geoghegan <pg@bowt.ie> wrote:
> I tend to be suspicious of use of the type "long" in general, because
> in general one should assume that it is no wider than "int". This
> calls into question why any code that uses "long" didn't just use
> "int", at least in my mind.

Yeah.  Using things that are guaranteed to be the size we want them to
be (and the same size on all platforms) seems like a good plan.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] Proposal for changes to recovery.conf API
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] Automatic cleanup of oldest WAL segments with pg_receivexlog