Use NameData datatype for slotname in stats. This will make it consistent with the other usage of slotname in the code. In the passing, change pgstat_report_replslot signature to use a structure rather than multiple parameters.
Reported-by: Andres Freund Author: Vignesh C Reviewed-by: Sawada Masahiko, Amit Kapila Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/cca57c1d9bf7eeba5b81115e0b82651cf3d8e4ea Modified Files -------------- src/backend/postmaster/pgstat.c | 32 +++++++++++++++---------------- src/backend/replication/logical/logical.c | 13 ++++++++++--- src/backend/replication/slot.c | 7 ++++++- src/backend/utils/adt/pgstatfuncs.c | 2 +- src/include/pgstat.h | 11 ++++------- 5 files changed, 36 insertions(+), 29 deletions(-)
