#endif
+#if PG_VERSION_NUM >= 80300
+#define stringToQualifiedNameList(x,y) stringToQualifiedNameList(x)
+#endif
+
+#if PG_VERSION_NUM < 80300
+#define SET_VARSIZE(p,l) VARATT_SIZEP(p)=(l)
+#endif
+
static void
gist_dumptree(Relation r, int level, BlockNumber blk, OffsetNumber coff, IdxInfo *info) {
Buffer buffer;
List *relname_list;
IdxInfo info;
-
relname_list = stringToQualifiedNameList(relname, "gist_tree");
relvar = makeRangeVarFromNameList(relname_list);
index = gist_index_open(relvar);
gist_index_close(index);
pfree(relname);
- VARATT_SIZEP(info.txt)=info.ptr-((char*)info.txt);
+ SET_VARSIZE(info.txt, info.ptr-((char*)info.txt));
PG_RETURN_POINTER(info.txt);
}
ptr=strchr(ptr,'\0');
- VARATT_SIZEP(out)=ptr-((char*)out);
+ SET_VARSIZE(out, ptr-((char*)out));
PG_RETURN_POINTER(out);
}