Re: GetStandbyFlushRecPtr() : OUT param is not optional like elsewhere.

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: GetStandbyFlushRecPtr() : OUT param is not optional like elsewhere.
Дата
Msg-id 20220720133616.yc5qa3wo4i4vtwum@alvherre.pgsql
обсуждение исходный текст
Ответ на GetStandbyFlushRecPtr() : OUT param is not optional like elsewhere.  (Amul Sul <sulamul@gmail.com>)
Ответы Re: GetStandbyFlushRecPtr() : OUT param is not optional like elsewhere.  (Amul Sul <sulamul@gmail.com>)
Список pgsql-hackers
Hello

On 2022-Jul-20, Amul Sul wrote:

> If you look at GetFlushRecPtr() function the OUT parameter for
> TimeLineID is optional and this is not only one, see
> GetWalRcvFlushRecPtr(), GetXLogReplayRecPtr(), etc.
> 
> I think we have missed that for GetStandbyFlushRecPtr(), to be
> inlined, we should change this as follow:

This is something we decide mostly on a case-by-case basis.  There's no
fixed rule that all out params have to be optional.

If anything is improved by this change, let's see what it is.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Remove fls(), use pg_bitutils.h facilities instead?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Default to hidden visibility for extension libraries where possi