Re: xlog location arithmetic

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: xlog location arithmetic
Дата
Msg-id 28804.1331304909@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: xlog location arithmetic  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: xlog location arithmetic
Список pgsql-hackers
I wrote:
> Fujii Masao <masao.fujii@gmail.com> writes:
>> Euler proposed one more patch upthread, which replaces pg_size_pretty(bigint)
>> with pg_size_pretty(numeric) so that pg_size_pretty(pg_xlog_location_diff())
>> succeeds. It's also worth committing this patch?

> Why would it be useful to use pg_size_pretty on xlog locations?
> -1 because of the large expense of bigint->numeric->whatever conversion
> that would be added to existing uses.

Actually ... now that I look at it, isn't it completely bogus to be
using numeric for the result of pg_xlog_location_diff?  There's no way
for the difference of two xlog locations to be anywhere near as wide as
64 bits.  That'd only be possible if XLogFileSize exceeded 1GB, which we
don't let it get anywhere near.
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: logging in high performance systems.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: xlog location arithmetic