Re: timestamp of the last replayed transaction

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: timestamp of the last replayed transaction
Дата
Msg-id AANLkTimYnzF5vU=cZgmZU7a61UmmaREM4Z6u39BCF5OR@mail.gmail.com
обсуждение исходный текст
Ответ на Re: timestamp of the last replayed transaction  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Ответы Re: timestamp of the last replayed transaction  (Fujii Masao <masao.fujii@gmail.com>)
Список pgsql-hackers
On Tue, Nov 2, 2010 at 10:38 PM, Dimitri Fontaine
<dimitri@2ndquadrant.fr> wrote:
> Fujii Masao <masao.fujii@gmail.com> writes:
>> After 9.0 release, I've often heard that some people want to know
>> how far transactions have been replayed in the standby in timestamp
>> rather than LSN. So I'm thinking to include the function which returns
>> the timestamp of the last applied transaction (i.e., commit/abort WAL
>> record) in the core.
>>
>> Name: pg_last_replay_xact_timestamp (better name?)
>> Return Type: timestamp with time zone
>>
>> Thought?
>
> How do you want to implement the tracking?

I'm thinking to just expose GetLatestXTime(), i.e., XLogCtl->recoveryLastXTime.

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: ALTER OBJECT any_name SET SCHEMA name
Следующее
От: Itagaki Takahiro
Дата:
Сообщение: Re: Comparison with "true" in source code