Re: xlog location arithmetic

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: xlog location arithmetic
Дата
Msg-id CABUevExnOBYzzjD+2LRs-ruCSeyeYCkqr_PHBgcU2WVM+GJzkg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: xlog location arithmetic  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: xlog location arithmetic
Список pgsql-hackers
On Fri, Mar 9, 2012 at 15:37, Tom Lane <tgl@sss.pgh.pa.us> 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.

Given the expense, perhaps we need to different (overloaded) functions instead?

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: xlog location arithmetic
Следующее
От: Tom Lane
Дата:
Сообщение: Re: xlog location arithmetic