Re: timestamp of the last replayed transaction

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: timestamp of the last replayed transaction
Дата
Msg-id AANLkTi=4=j2-0eJEu2-OWjEzwWDvRmjLGphJpKcA0+cx@mail.gmail.com
обсуждение исходный текст
Ответ на Re: timestamp of the last replayed transaction  (Fujii Masao <masao.fujii@gmail.com>)
Ответы Re: timestamp of the last replayed transaction  (Fujii Masao <masao.fujii@gmail.com>)
Список pgsql-hackers
On Mon, Nov 8, 2010 at 6:00 AM, Fujii Masao <masao.fujii@gmail.com> wrote:
> On Sat, Nov 6, 2010 at 9:58 AM, Robert Haas <robertmhaas@gmail.com> wrote:
>> This looks good, but how about adding:
>>
>> if (!RecoveryInProgress())
>>    PG_RETURN_NULL();
>>
>> Otherwise, if we're in Hot Standby mode for a while and then enter
>> normal running, wouldn't this still return a (stale) value?
>
> Yes, but isn't that (stale) value useful to check how far WAL records
> have been replayed, *after failover*?

Oh, OK.  I guess that makes sense.  One other question - should we say
pg_last_xact_replay_timestamp() rather than
pg_xact_last_replay_timestamp(), for consistency with
pg_last_xlog_replay_location()?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Aidan Van Dyk
Дата:
Сообщение: Re: Protecting against unexpected zero-pages: proposal
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Protecting against unexpected zero-pages: proposal