Remove unused 'len' from pg_stat_recv_* functions - Mailing list pgsql-hackers

From Masahiko Sawada
Subject Remove unused 'len' from pg_stat_recv_* functions
Date
Msg-id CAD21AoAnDi9JBmzjy0L5G8oq4P6zGdY75g=NJx+PeQL3vzPArg@mail.gmail.com
Whole thread Raw
Responses Re: Remove unused 'len' from pg_stat_recv_* functions
List 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/

Attachment

pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Re: row filtering for logical replication
Next
From: Richard Guo
Date:
Subject: Sort keys are omitted incorrectly after grouping sets