Re: BlockNumber fixes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BlockNumber fixes
Дата
Msg-id 17228.1026137948@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BlockNumber fixes  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: BlockNumber fixes  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I did some research on this and generated the following patch.  I didn't
> find much in the way of problems except two vacuum.c fields that should
> probably be BlockNumber.  freespace.c also has a numPages field in
> FSMRelation that is int.  Should that be BlockNumber?

Not necessary, since the freespace map will never be large enough to
overflow a signed int (it wouldn't fit in the address space if it were).
I think that your changes in vacuum.c are probably unnecessary for the
same reason.  I am generally wary of changing values from signed to
unsigned without close analysis of how they are used --- did you look
at *every* comparison involving these fields?  How about arithmetic
that might compute a negative result?
        regards, tom lane




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

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: Proposal: CREATE CONVERSION
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Issues Outstanding for Point In Time Recovery (PITR)