projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4f453f
)
Fix crash/valgrind error
author
Peter Eisentraut
<
[email protected]
>
Fri, 4 Apr 2025 12:45:53 +0000
(14:45 +0200)
committer
Peter Eisentraut
<
[email protected]
>
Fri, 4 Apr 2025 12:45:53 +0000
(14:45 +0200)
Fix for commit
9ef1851685b
: We have to skip indexes where sortopfamily
is NULL. This takes the place of the previous btree check. Detected
by valgrind on the buildfarm.
src/backend/utils/adt/selfuncs.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/selfuncs.c
b/src/backend/utils/adt/selfuncs.c
index b62c3f3116d9707ee2ccdd04f2813b734eadd6fb..462308807ef62739c27c6fbf020ad74651bcd7c3 100644
(file)
--- a/
src/backend/utils/adt/selfuncs.c
+++ b/
src/backend/utils/adt/selfuncs.c
@@
-6329,6
+6329,10
@@
get_actual_variable_range(PlannerInfo *root, VariableStatData *vardata,
ScanDirection indexscandir;
StrategyNumber strategy;
+ /* Ignore non-ordering indexes */
+ if (index->sortopfamily == NULL)
+ continue;
+
/*
* Ignore partial indexes --- we only want stats that cover the entire
* relation.