pgsql: Replace magic constants used in pg_stat_get_replication_slot().

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Replace magic constants used in pg_stat_get_replication_slot().
Date: 2021-06-30 06:21:53
Message-ID: E1lyTbd-0005lk-8M@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a9cb00a965c6ac0cd434733fae0948218702e501

Modified Files
--------------
src/backend/utils/adt/pgstatfuncs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2021-06-30 06:52:31 pgsql: genbki stricter error handling
Previous Message Amit Kapila 2021-06-30 04:36:41 pgsql: Allow streaming the changes after speculative aborts.