@@ -973,7 +973,7 @@ deparseSelectStmtForRel(StringInfo buf, PlannerInfo *root, RelOptInfo *rel,
973973 /* Append HAVING clause */
974974 if (remote_conds )
975975 {
976- appendStringInfo (buf , " HAVING " );
976+ appendStringInfoString (buf , " HAVING " );
977977 appendConditions (remote_conds , & context );
978978 }
979979 }
@@ -1076,7 +1076,7 @@ deparseFromExpr(List *quals, deparse_expr_cxt *context)
10761076 /* Construct WHERE clause */
10771077 if (quals != NIL )
10781078 {
1079- appendStringInfo (buf , " WHERE " );
1079+ appendStringInfoString (buf , " WHERE " );
10801080 appendConditions (quals , context );
10811081 }
10821082}
@@ -1447,15 +1447,15 @@ deparseFromExprForRel(StringInfo buf, PlannerInfo *root, RelOptInfo *foreignrel,
14471447 context .root = root ;
14481448 context .params_list = params_list ;
14491449
1450- appendStringInfo (buf , "(" );
1450+ appendStringInfoChar (buf , '(' );
14511451 appendConditions (fpinfo -> joinclauses , & context );
1452- appendStringInfo (buf , ")" );
1452+ appendStringInfoChar (buf , ')' );
14531453 }
14541454 else
14551455 appendStringInfoString (buf , "(TRUE)" );
14561456
14571457 /* End the FROM clause entry. */
1458- appendStringInfo (buf , ")" );
1458+ appendStringInfoChar (buf , ')' );
14591459 }
14601460 else
14611461 {
@@ -1702,7 +1702,7 @@ deparseDirectUpdateSql(StringInfo buf, PlannerInfo *root,
17021702
17031703 if (remote_conds )
17041704 {
1705- appendStringInfo (buf , " WHERE " );
1705+ appendStringInfoString (buf , " WHERE " );
17061706 appendConditions (remote_conds , & context );
17071707 }
17081708
@@ -1762,7 +1762,7 @@ deparseDirectDeleteSql(StringInfo buf, PlannerInfo *root,
17621762
17631763 if (remote_conds )
17641764 {
1765- appendStringInfo (buf , " WHERE " );
1765+ appendStringInfoString (buf , " WHERE " );
17661766 appendConditions (remote_conds , & context );
17671767 }
17681768
@@ -1978,17 +1978,17 @@ deparseColumnRef(StringInfo buf, int varno, int varattno, PlannerInfo *root,
19781978 {
19791979 appendStringInfoString (buf , "CASE WHEN (" );
19801980 ADD_REL_QUALIFIER (buf , varno );
1981- appendStringInfo (buf , "*)::text IS NOT NULL THEN " );
1981+ appendStringInfoString (buf , "*)::text IS NOT NULL THEN " );
19821982 }
19831983
19841984 appendStringInfoString (buf , "ROW(" );
19851985 deparseTargetList (buf , root , varno , rel , false, attrs_used , qualify_col ,
19861986 & retrieved_attrs );
1987- appendStringInfoString (buf , ")" );
1987+ appendStringInfoChar (buf , ')' );
19881988
19891989 /* Complete the CASE WHEN statement started above. */
19901990 if (qualify_col )
1991- appendStringInfo (buf , " END" );
1991+ appendStringInfoString (buf , " END" );
19921992
19931993 heap_close (rel , NoLock );
19941994 bms_free (attrs_used );
@@ -2759,7 +2759,7 @@ deparseAggref(Aggref *node, deparse_expr_cxt *context)
27592759 appendStringInfoChar (buf , '(' );
27602760
27612761 /* Add DISTINCT */
2762- appendStringInfo (buf , "%s" , (node -> aggdistinct != NIL ) ? "DISTINCT " : "" );
2762+ appendStringInfoString (buf , (node -> aggdistinct != NIL ) ? "DISTINCT " : "" );
27632763
27642764 if (AGGKIND_IS_ORDERED_SET (node -> aggkind ))
27652765 {
@@ -2944,7 +2944,7 @@ appendGroupByClause(List *tlist, deparse_expr_cxt *context)
29442944 if (!query -> groupClause )
29452945 return ;
29462946
2947- appendStringInfo (buf , " GROUP BY " );
2947+ appendStringInfoString (buf , " GROUP BY " );
29482948
29492949 /*
29502950 * Queries with grouping sets are not pushed down, so we don't expect
@@ -2981,7 +2981,7 @@ appendOrderByClause(List *pathkeys, deparse_expr_cxt *context)
29812981 /* Make sure any constants in the exprs are printed portably */
29822982 nestlevel = set_transmission_modes ();
29832983
2984- appendStringInfo (buf , " ORDER BY" );
2984+ appendStringInfoString (buf , " ORDER BY" );
29852985 foreach (lcell , pathkeys )
29862986 {
29872987 PathKey * pathkey = lfirst (lcell );
@@ -3035,7 +3035,7 @@ appendFunctionName(Oid funcid, deparse_expr_cxt *context)
30353035
30363036 /* Always print the function name */
30373037 proname = NameStr (procform -> proname );
3038- appendStringInfo (buf , "%s" , quote_identifier (proname ));
3038+ appendStringInfoString (buf , quote_identifier (proname ));
30393039
30403040 ReleaseSysCache (proctup );
30413041}
@@ -3070,9 +3070,9 @@ deparseSortGroupClause(Index ref, List *tlist, deparse_expr_cxt *context)
30703070 else
30713071 {
30723072 /* Always parenthesize the expression. */
3073- appendStringInfoString (buf , "(" );
3073+ appendStringInfoChar (buf , '(' );
30743074 deparseExpr (expr , context );
3075- appendStringInfoString (buf , ")" );
3075+ appendStringInfoChar (buf , ')' );
30763076 }
30773077
30783078 return (Node * ) expr ;
0 commit comments