What's the best practice to compare the transaction with the checkpoint?

Поиск
Список
Период
Сортировка
От Jialun Zhang
Тема What's the best practice to compare the transaction with the checkpoint?
Дата
Msg-id CAMFL+Jg88HxVL75db9HY_QebL+iLGAH4p-0Drmii4z1m6QD7aw@mail.gmail.com
обсуждение исходный текст
Ответы Re: What's the best practice to compare the transaction with the checkpoint?
Список pgsql-novice
Hi All,

I am trying to add code to determine whether the transaction is checkpointed or not. So I think I need to compare the transaction ID with the checkpoint's and determine whether it is older or not. Could anyone tell me what's the best practice of doing this in Postgres? Is it done somewhere in the existing code?

Thanks,
Jialun Zhang

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Why do we have checkPointCopy in ControlFileData?
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: What's the best practice to compare the transaction with the checkpoint?