Replace magic constants used in pg_stat_get_replication_slot().
authorAmit Kapila <akapila@postgresql.org>
Wed, 30 Jun 2021 05:59:53 +0000 (11:29 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 30 Jun 2021 05:59:53 +0000 (11:29 +0530)
commitab5e48f153cfea2c571dc177ae96faf4ab072b8e
treea7ba054b55fba9f0f3d3499e62c80c9ac46d59bb
parent52d26d560e272613c501e35b24fbf8d710de4b8a
Replace magic constants used in pg_stat_get_replication_slot().

A few variables have been using 10 as a magic constant while
PG_STAT_GET_REPLICATION_SLOT_COLS can be used instead.

Author: Masahiko Sawada
Reviewed-By: Amit Kapila
Backpatch-through: 14, where it was introduced
Discussion: https://postgr.es/m/CAD21AoBvqODDfmD17DkEuPCvV2KbruukXQ2Vwrv5Xi-TsAsTJA@mail.gmail.com
src/backend/utils/adt/pgstatfuncs.c