@@ -428,13 +428,13 @@ RI_FKey_check(TriggerData *trigdata)
428
428
{
429
429
Oid fk_type = RIAttType (fk_rel , riinfo -> fk_attnums [riinfo -> nkeys - 1 ]);
430
430
431
- appendStringInfo (& querybuf , ") x1 HAVING " );
431
+ appendStringInfoString (& querybuf , ") x1 HAVING " );
432
432
sprintf (paramname , "$%d" , riinfo -> nkeys );
433
433
ri_GenerateQual (& querybuf , "" ,
434
434
paramname , fk_type ,
435
435
riinfo -> agged_period_contained_by_oper ,
436
436
"pg_catalog.range_agg" , ANYMULTIRANGEOID );
437
- appendStringInfo (& querybuf , "(x1.r)" );
437
+ appendStringInfoString (& querybuf , "(x1.r)" );
438
438
}
439
439
440
440
/* Prepare and save the plan */
@@ -597,13 +597,13 @@ ri_Check_Pk_Match(Relation pk_rel, Relation fk_rel,
597
597
{
598
598
Oid fk_type = RIAttType (fk_rel , riinfo -> fk_attnums [riinfo -> nkeys - 1 ]);
599
599
600
- appendStringInfo (& querybuf , ") x1 HAVING " );
600
+ appendStringInfoString (& querybuf , ") x1 HAVING " );
601
601
sprintf (paramname , "$%d" , riinfo -> nkeys );
602
602
ri_GenerateQual (& querybuf , "" ,
603
603
paramname , fk_type ,
604
604
riinfo -> agged_period_contained_by_oper ,
605
605
"pg_catalog.range_agg" , ANYMULTIRANGEOID );
606
- appendStringInfo (& querybuf , "(x1.r)" );
606
+ appendStringInfoString (& querybuf , "(x1.r)" );
607
607
}
608
608
609
609
/* Prepare and save the plan */
@@ -838,12 +838,12 @@ ri_restrict(TriggerData *trigdata, bool is_no_action)
838
838
839
839
/* Intersect the fk with the old pk range */
840
840
initStringInfo (& intersectbuf );
841
- appendStringInfoString (& intersectbuf , "(" );
841
+ appendStringInfoChar (& intersectbuf , '(' );
842
842
ri_GenerateQual (& intersectbuf , "" ,
843
843
attname , fk_period_type ,
844
844
riinfo -> period_intersect_oper ,
845
845
paramname , pk_period_type );
846
- appendStringInfoString (& intersectbuf , ")" );
846
+ appendStringInfoChar (& intersectbuf , ')' );
847
847
848
848
/* Find the remaining history */
849
849
initStringInfo (& replacementsbuf );
0 commit comments