• David Rowley's avatar
    Fixup some appendStringInfo and appendPQExpBuffer calls · 110d8172
    David Rowley authored
    A number of places were using appendStringInfo() when they could have been
    using appendStringInfoString() instead.  While there's no functionality
    change there, it's just more efficient to use appendStringInfoString()
    when no formatting is required.  Likewise for some
    appendStringInfoString() calls which were just appending a single char.
    We can just use appendStringInfoChar() for that.
    
    Additionally, many places were using appendPQExpBuffer() when they could
    have used appendPQExpBufferStr(). Change those too.
    
    Patch by Zhijie Hou, but further searching by me found significantly more
    places that deserved the same treatment.
    
    Author: Zhijie Hou, David Rowley
    Discussion: https://postgr.es/m/cb172cf4361e4c7ba7167429070979d4@G08CNEXMBPEKD05.g08.fujitsu.local
    110d8172
ruleutils.c 315 KB