From e75145cb74b209b88caa315b6d2fee5433836f9a Mon Sep 17 00:00:00 2001 From: Julien Rouhaud Date: Tue, 3 Oct 2017 18:56:22 +0200 Subject: [PATCH] Add pg11 compatibility wrt 2cd70845240 --- hypopg_import.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hypopg_import.c b/hypopg_import.c index 8f275ee..d1e14c3 100644 --- a/hypopg_import.c +++ b/hypopg_import.c @@ -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,