Function for dealing with xlog data

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Function for dealing with xlog data
Дата
Msg-id AANLkTinE2+CMxTscP1SP3RSL7Z=v2gR42F_CcSYVZr2G@mail.gmail.com
обсуждение исходный текст
Ответы Re: Function for dealing with xlog data  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Currently, a number of functions return data in a really
calculation-unfriendly format, e.g:

postgres=# select * from pg_current_xlog_location();pg_current_xlog_location
--------------------------0/3013158
(1 row)

It would be very useful to have a way to convert this to a bigint - so
we can do differences between different values easily. And it's AFAIUI
easily converted to a 64-bit integer.

Would others find this useful as well?

What's the best way of doing it? Should we have a function that takes
text as input, or should the functions in question be made to return a
new datatype that could then be casted?

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


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: system views for walsender activity
Следующее
От: Itagaki Takahiro
Дата:
Сообщение: Re: system views for walsender activity