]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Replace magic constants used in pg_stat_get_replication_slot().
authorAmit Kapila <akapila@postgresql.org>
Wed, 30 Jun 2021 06:10:06 +0000 (11:40 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 30 Jun 2021 06:10:06 +0000 (11:40 +0530)
commita9cb00a965c6ac0cd434733fae0948218702e501
treebc1176ee9c271ba962c157472f793e7cddad5785
parentdfceed30abc191c097557357dd6db56e875bb7e1
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