Remove unused 'len' from pg_stat_recv_* functions

Поиск
Список
Период
Сортировка
От Masahiko Sawada
Тема Remove unused 'len' from pg_stat_recv_* functions
Дата
Msg-id CAD21AoAnDi9JBmzjy0L5G8oq4P6zGdY75g=NJx+PeQL3vzPArg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Remove unused 'len' from pg_stat_recv_* functions  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Список pgsql-hackers
Hi all,

While working on a patch adding new stats, houzj pointed out that
'len' function arguments of all pgstat_recv_* functions are not used
at all. Looking at git history, pgstat_recv_* functions have been
having ‘len’ since the stats collector was introduced by commit
140ddb78fe 20 years ago but it was not used at all even in the first
commit. It seems like the improvements so far for the stats collector
had pgstat_recv_* function have ‘len’ for consistency with the
existing pgstat_recv_* functions. Is there any historical reason for
having 'len' argument? Or can we remove them?

I've attached the patch that removes 'len' from all pgstat_recv_* functions.

Regards,

--
Masahiko Sawada
EDB:  https://www.enterprisedb.com/

Вложения

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

Предыдущее
От: Peter Smith
Дата:
Сообщение: Re: row filtering for logical replication
Следующее
От: Richard Guo
Дата:
Сообщение: Sort keys are omitted incorrectly after grouping sets