Fix hypo index on real partition for pg11+

This commit is contained in:
Julien Rouhaud 2018-11-17 12:46:49 +01:00
parent a0d7faefc2
commit bd547d694a

View file

@ -556,8 +556,8 @@ hypo_get_relation_info_hook(PlannerInfo *root,
hypoIndex *entry = (hypoIndex *) lfirst(lc);
if (entry->relid == parentId
#if PG_VERSION_NUM >= 100000
&& rel->reloptkind != RELOPT_OTHER_MEMBER_REL
#if PG_VERSION_NUM >= 110000
&& !rel->part_scheme
#endif
)
{