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

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [HACKERS] Should logtape.c blocks be of type long?
Дата
Msg-id ZQ0cD0mHa0-nuFLC@paquier.xyz
обсуждение исходный текст
Ответ на Re: [HACKERS] Should logtape.c blocks be of type long?  (Peter Geoghegan <pg@bowt.ie>)
Ответы Re: [HACKERS] Should logtape.c blocks be of type long?  (Peter Geoghegan <pg@bowt.ie>)
Список pgsql-hackers
On Sun, Feb 26, 2017 at 10:04:20AM -0800, Peter Geoghegan wrote:
> I think it's worth being consistent about a restriction like this, as
> Robert said. Given that fixing this issue will not affect the machine
> code generated by compilers for the majority of platforms we support,
> doing so seems entirely worthwhile to me.

(Reviving an old thread, fives years later..)

As far as I can see, no patches have been sent to do that, and the
changes required to replace long by int64 in the logtape and tuplesort
code are rather minimal as long as some care is taken with all the
internals of logtape (correct me of course if I'm wrong).  I really
don't see why we shouldn't do the switch based on the argument of
Windows not being able to handle more than 16TB worth of blocks as
things stand because of long in these code paths.

So, attached is a patch to change these longs to int64.  Any thoughts?
--
Michael

Вложения

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

Предыдущее
От: Dilip Kumar
Дата:
Сообщение: Re: New WAL record to detect the checkpoint redo location
Следующее
От: 程ゆき
Дата:
Сообщение: Try adding type cast with tablespace