Use NameData datatype for slotname in stats.
authorAmit Kapila <akapila@postgresql.org>
Wed, 14 Apr 2021 03:25:03 +0000 (08:55 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 14 Apr 2021 03:25:03 +0000 (08:55 +0530)
commitcca57c1d9bf7eeba5b81115e0b82651cf3d8e4ea
tree9eba133a9964982eecc42ac177a8d029953928d7
parent20661c15db8f430d4880ba685e6b12afa271c1ac
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/20210319185247.ldebgpdaxsowiflw@alap3.anarazel.de
src/backend/postmaster/pgstat.c
src/backend/replication/logical/logical.c
src/backend/replication/slot.c
src/backend/utils/adt/pgstatfuncs.c
src/include/pgstat.h