diff --git a/deparse.c b/deparse.c index 0555b95..5011c60 100644 --- a/deparse.c +++ b/deparse.c @@ -1777,7 +1777,11 @@ deparseArrayRef(ArrayRef *node, deparse_expr_cxt *context) { deparseExpr(lfirst(lowlist_item), context); appendStringInfoChar(buf, ':'); +#if PG_VERSION_NUM>=130000 + lowlist_item = lnext(node->reflowerindexpr, lowlist_item); +#else lowlist_item = lnext(lowlist_item); +#endif } deparseExpr(lfirst(uplist_item), context); appendStringInfoChar(buf, ']'); @@ -1840,7 +1844,11 @@ deparseFuncExpr(FuncExpr *node, deparse_expr_cxt *context) { if (!first) appendStringInfoString(buf, ", "); +#if PG_VERSION_NUM>=130000 + if (use_variadic && lnext(node->args, arg) == NULL) +#else if (use_variadic && lnext(arg) == NULL) +#endif appendStringInfoString(buf, "VARIADIC "); deparseExpr((Expr *) lfirst(arg), context); first = false; @@ -2168,7 +2176,11 @@ deparseAggref(Aggref *node, deparse_expr_cxt *context) first = false; /* Add VARIADIC */ +#if PG_VERSION_NUM>=130000 + if (use_variadic && lnext(node->args, arg) == NULL) +#else if (use_variadic && lnext(arg) == NULL) +#endif appendStringInfoString(buf, "VARIADIC "); deparseExpr((Expr *) n, context); diff --git a/vops.c b/vops.c index 80928ab..043e80b 100644 --- a/vops.c +++ b/vops.c @@ -1185,7 +1185,7 @@ static void insert_tuple(Datum* values, bool* nulls) HeapTuple tup = heap_form_tuple(RelationGetDescr(rel), values, nulls); #if PG_VERSION_NUM>=120000 ExecStoreHeapTuple(tup, slot, true); - simple_table_insert(rel, slot); + simple_table_tuple_insert(rel, slot); #else ExecStoreTuple(tup, slot, InvalidBuffer, true); simple_heap_insert(rel, slot->tts_tuple);