diff options
Diffstat (limited to 'contrib/postgres_fdw/deparse.c')
-rw-r--r-- | contrib/postgres_fdw/deparse.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/postgres_fdw/deparse.c b/contrib/postgres_fdw/deparse.c index a03eec3c828..a2675eb8362 100644 --- a/contrib/postgres_fdw/deparse.c +++ b/contrib/postgres_fdw/deparse.c @@ -841,7 +841,7 @@ deparseInsertSql(StringInfo buf, PlannerInfo *root, if (targetAttrs) { - appendStringInfoString(buf, "("); + appendStringInfoChar(buf, '('); first = true; foreach(lc, targetAttrs) @@ -869,7 +869,7 @@ deparseInsertSql(StringInfo buf, PlannerInfo *root, pindex++; } - appendStringInfoString(buf, ")"); + appendStringInfoChar(buf, ')'); } else appendStringInfoString(buf, " DEFAULT VALUES"); @@ -989,7 +989,7 @@ deparseAnalyzeSizeSql(StringInfo buf, Relation rel) initStringInfo(&relname); deparseRelation(&relname, rel); - appendStringInfo(buf, "SELECT pg_catalog.pg_relation_size("); + appendStringInfoString(buf, "SELECT pg_catalog.pg_relation_size("); deparseStringLiteral(buf, relname.data); appendStringInfo(buf, "::pg_catalog.regclass) / %d", BLCKSZ); } @@ -1302,7 +1302,7 @@ deparseConst(Const *node, deparse_expr_cxt *context) if (node->constisnull) { - appendStringInfo(buf, "NULL"); + appendStringInfoString(buf, "NULL"); appendStringInfo(buf, "::%s", format_type_with_typemod(node->consttype, node->consttypmod)); @@ -1650,7 +1650,7 @@ deparseOperatorName(StringInfo buf, Form_pg_operator opform) else { /* Just print operator name. */ - appendStringInfo(buf, "%s", opname); + appendStringInfoString(buf, opname); } } |