mirror of
https://github.com/postgres/postgres.git
synced 2025-07-23 03:21:12 +03:00
Fix crash/valgrind error
Fix for commit 9ef1851685
: We have to skip indexes where sortopfamily
is NULL. This takes the place of the previous btree check. Detected
by valgrind on the buildfarm.
This commit is contained in:
@ -6329,6 +6329,10 @@ get_actual_variable_range(PlannerInfo *root, VariableStatData *vardata,
|
|||||||
ScanDirection indexscandir;
|
ScanDirection indexscandir;
|
||||||
StrategyNumber strategy;
|
StrategyNumber strategy;
|
||||||
|
|
||||||
|
/* Ignore non-ordering indexes */
|
||||||
|
if (index->sortopfamily == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ignore partial indexes --- we only want stats that cover the entire
|
* Ignore partial indexes --- we only want stats that cover the entire
|
||||||
* relation.
|
* relation.
|
||||||
|
Reference in New Issue
Block a user