From 5eaa0bf98b895abeea7b06ea9c86ee6fd92ea25b Mon Sep 17 00:00:00 2001 From: Rushabh Lathia Date: Fri, 27 Sep 2019 17:32:23 +0530 Subject: [PATCH] Fix build for v11. This was broken as it's not using the correct APIs for fetch the tuple descriptor attributes. --- mongo_fdw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongo_fdw.c b/mongo_fdw.c index 4306bd8..8375800 100644 --- a/mongo_fdw.c +++ b/mongo_fdw.c @@ -2038,7 +2038,7 @@ MongoAcquireSampleRows(Relation relation, int errorLevel, for (columnId = 1; columnId <= columnCount; columnId++) { Var *column = (Var *) palloc0(sizeof(Var)); -#if PG_VERSION_NUM >= 120000 +#if PG_VERSION_NUM >= 110000 Form_pg_attribute attr = TupleDescAttr(tupleDescriptor, columnId-1); column->varattno = columnId;