Replace magic constants used in pg_stat_get_replication_slot().

Amit Kapila <akapila@postgresql.org>

Commit: a9cb00a965c6ac0cd434733fae0948218702e501
Author: Amit Kapila <akapila@postgresql.org>
Date: 2021-06-30T06:10:06Z
Releases: 14.0
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

Files

PathChange+/−
src/backend/utils/adt/pgstatfuncs.c modified +2 −2

Discussion