mirror of
https://github.com/HypoPG/hypopg
synced 2026-05-24 09:38:21 +00:00
Add pg11 compatibility wrt 2cd70845240
This commit is contained in:
parent
fa9a2a26e8
commit
e75145cb74
1 changed files with 4 additions and 0 deletions
|
|
@ -68,7 +68,11 @@ build_index_tlist(PlannerInfo *root, IndexOptInfo *index,
|
|||
att_tup = SystemAttributeDefinition(indexkey,
|
||||
heapRelation->rd_rel->relhasoids);
|
||||
else
|
||||
#if PG_VERSION_NUM >= 110000
|
||||
att_tup = TupleDescAttr(heapRelation->rd_att, indexkey - 1);
|
||||
#else
|
||||
att_tup = heapRelation->rd_att->attrs[indexkey - 1];
|
||||
#endif
|
||||
|
||||
indexvar = (Expr *) makeVar(varno,
|
||||
indexkey,
|
||||
|
|
|
|||
Loading…
Reference in a new issue