@@ -428,13 +428,13 @@ RI_FKey_check(TriggerData *trigdata)
428428{
429429Oid fk_type = RIAttType (fk_rel ,riinfo -> fk_attnums [riinfo -> nkeys - 1 ]);
430430
431- appendStringInfo (& querybuf ,") x1 HAVING " );
431+ appendStringInfoString (& querybuf ,") x1 HAVING " );
432432sprintf (paramname ,"$%d" ,riinfo -> nkeys );
433433ri_GenerateQual (& querybuf ,"" ,
434434paramname ,fk_type ,
435435riinfo -> agged_period_contained_by_oper ,
436436"pg_catalog.range_agg" ,ANYMULTIRANGEOID );
437- appendStringInfo (& querybuf ,"(x1.r)" );
437+ appendStringInfoString (& querybuf ,"(x1.r)" );
438438}
439439
440440/* Prepare and save the plan */
@@ -597,13 +597,13 @@ ri_Check_Pk_Match(Relation pk_rel, Relation fk_rel,
597597{
598598Oid fk_type = RIAttType (fk_rel ,riinfo -> fk_attnums [riinfo -> nkeys - 1 ]);
599599
600- appendStringInfo (& querybuf ,") x1 HAVING " );
600+ appendStringInfoString (& querybuf ,") x1 HAVING " );
601601sprintf (paramname ,"$%d" ,riinfo -> nkeys );
602602ri_GenerateQual (& querybuf ,"" ,
603603paramname ,fk_type ,
604604riinfo -> agged_period_contained_by_oper ,
605605"pg_catalog.range_agg" ,ANYMULTIRANGEOID );
606- appendStringInfo (& querybuf ,"(x1.r)" );
606+ appendStringInfoString (& querybuf ,"(x1.r)" );
607607}
608608
609609/* Prepare and save the plan */
@@ -838,12 +838,12 @@ ri_restrict(TriggerData *trigdata, bool is_no_action)
838838
839839/* Intersect the fk with the old pk range */
840840initStringInfo (& intersectbuf );
841- appendStringInfoString (& intersectbuf ,"(" );
841+ appendStringInfoChar (& intersectbuf ,'(' );
842842ri_GenerateQual (& intersectbuf ,"" ,
843843attname ,fk_period_type ,
844844riinfo -> period_intersect_oper ,
845845paramname ,pk_period_type );
846- appendStringInfoString (& intersectbuf ,")" );
846+ appendStringInfoChar (& intersectbuf ,')' );
847847
848848/* Find the remaining history */
849849initStringInfo (& replacementsbuf );