Skip to content

Commit 0035e8c

Browse files
committed
fix bmcostestimate crash
1 parent 2d4eea4 commit 0035e8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/utils/adt/selfuncs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7325,10 +7325,10 @@ bmcostestimate(PG_FUNCTION_ARGS)
73257325
PlannerInfo *root = (PlannerInfo *) PG_GETARG_POINTER(0);
73267326
IndexPath *path = (IndexPath *) PG_GETARG_POINTER(1);
73277327
double loop_count = PG_GETARG_FLOAT8(2);
7328-
Cost *indexStartupCost = (Cost *) PG_GETARG_POINTER(5);
7329-
Cost *indexTotalCost = (Cost *) PG_GETARG_POINTER(6);
7330-
Selectivity *indexSelectivity = (Selectivity *) PG_GETARG_POINTER(7);
7331-
double *indexCorrelation = (double *) PG_GETARG_POINTER(8);
7328+
Cost *indexStartupCost = (Cost *) PG_GETARG_POINTER(3);
7329+
Cost *indexTotalCost = (Cost *) PG_GETARG_POINTER(4);
7330+
Selectivity *indexSelectivity = (Selectivity *) PG_GETARG_POINTER(5);
7331+
double *indexCorrelation = (double *) PG_GETARG_POINTER(6);
73327332

73337333
List *selectivityQuals;
73347334
double numIndexTuples;

0 commit comments

Comments
 (0)