projects
/
plantuner.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecc61f2
)
fix deleting cell on fly
author
Teodor Sigaev
<teodor@sigaev.ru>
Mon, 22 Jul 2019 11:54:29 +0000
(14:54 +0300)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Mon, 22 Jul 2019 11:54:29 +0000
(14:54 +0300)
plantuner.c
patch
|
blob
|
history
diff --git
a/plantuner.c
b/plantuner.c
index
1973d01
..
b22ef9c
100644
(file)
--- a/
plantuner.c
+++ b/
plantuner.c
@@
-326,6
+326,7
@@
indexFilter(PlannerInfo *root, Oid relationObjectId, bool inhparent,
{
ListCell *l;
+restart1:
foreach(l, rel->indexlist)
{
IndexOptInfo *info = (IndexOptInfo*)lfirst(l);
@@
-336,7
+337,10
@@
indexFilter(PlannerInfo *root, Oid relationObjectId, bool inhparent,
remove = false;
if (remove)
+ {
rel->indexlist = list_delete_ptr(rel->indexlist, info);
+ goto restart1;
+ }
}
return;