Add missing deparsing of [NO] IDENT to XMLSERIALIZE()

984410b923263cac901fa81e0efbe523e9c36df3
m3hm3t/pg18_dev_relation_oid_0
Mehmet Yilmaz 2025-05-30 09:13:34 +00:00
parent 85ffb3ff7d
commit 26fd672333
1 changed files with 8 additions and 1 deletions

View File

@ -6674,9 +6674,16 @@ get_rule_expr(Node *node, deparse_context *context,
}
}
if (xexpr->op == IS_XMLSERIALIZE)
{
appendStringInfo(buf, " AS %s",
format_type_with_typemod(xexpr->type,
xexpr->typmod));
if (xexpr->indent)
appendStringInfoString(buf, " INDENT");
else
appendStringInfoString(buf, " NO INDENT");
}
if (xexpr->op == IS_DOCUMENT)
appendStringInfoString(buf, " IS DOCUMENT");
else
@ -6874,7 +6881,7 @@ get_rule_expr(Node *node, deparse_context *context,
}
}
break;
case T_ReturningExpr:
{
ReturningExpr *retExpr = (ReturningExpr *) node;