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