Simplifying the interface of UpdateMinRecoveryPoint

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Simplifying the interface of UpdateMinRecoveryPoint
Дата
Msg-id CAB7nPqQjgNLZTH5KTp32QK19k7LyiW6OUZBDBSoJios=nxPk_A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Simplifying the interface of UpdateMinRecoveryPoint  (Amit Kapila <amit.kapila16@gmail.com>)
Re: Simplifying the interface of UpdateMinRecoveryPoint  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
Hi all,

As of now UpdateMinRecoveryPoint() is using two arguments:
- lsn, to check if the minimum recovery point should be updated to that
- force, a boolean flag to decide if the update should be enforced or not.
However those two arguments are correlated. If lsn is
InvalidXlogRecPtr, the minimum recovery point update will be enforced.
Hence why not simplifying its interface and remove the force flag? See
attached.

Thanks,
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: RecoveryTargetTLI dead variable in XLogCtlData
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: dumping database privileges broken in 9.6