pg_hint_plan_set_rel_pathlist left partial paths if no parallel hint
is specified, but that behavior leaves indexscan partial paths on
restricted indexes. Remove all partial paths unconditionally.
list_free_deep(rel->pathlist);
rel->pathlist = NIL;
- /* Remove all the partial paths if Parallel hint is specfied */
- if ((found_hints & HINT_BM_PARALLEL) && rel->partial_pathlist)
- {
- list_free_deep(rel->partial_pathlist);
- rel->partial_pathlist = NIL;
- }
+ list_free_deep(rel->partial_pathlist);
+ rel->partial_pathlist = NIL;
/* Regenerate paths with the current enforcement */
set_plain_rel_pathlist(root, rel, rte);