Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitab5e48f

Browse files
author
Amit Kapila
committed
Replace magic constants used in pg_stat_get_replication_slot().
A few variables have been using 10 as a magic constant whilePG_STAT_GET_REPLICATION_SLOT_COLS can be used instead.Author: Masahiko SawadaReviewed-By: Amit KapilaBackpatch-through: 14, where it was introducedDiscussion:https://postgr.es/m/CAD21AoBvqODDfmD17DkEuPCvV2KbruukXQ2Vwrv5Xi-TsAsTJA@mail.gmail.com
1 parent52d26d5 commitab5e48f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/adt/pgstatfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,8 +2317,8 @@ pg_stat_get_replication_slot(PG_FUNCTION_ARGS)
23172317
text*slotname_text=PG_GETARG_TEXT_P(0);
23182318
NameDataslotname;
23192319
TupleDesctupdesc;
2320-
Datumvalues[10];
2321-
boolnulls[10];
2320+
Datumvalues[PG_STAT_GET_REPLICATION_SLOT_COLS];
2321+
boolnulls[PG_STAT_GET_REPLICATION_SLOT_COLS];
23222322
PgStat_StatReplSlotEntry*slotent;
23232323
PgStat_StatReplSlotEntryallzero;
23242324

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp