On Mon, Dec 21, 2015 at 6:28 PM, David Rowley <david.row...@2ndquadrant.com> wrote: > According to grep -rE "appendStringInfoString\(.*\.data\);" . we have 13 > such matches. None of them seem to be in very performance critical places, > perhaps with the exception of xmlconcat(). > > Would you say that we should build a macro to wrap up a call to > appendBinaryStringInfo() or invent another function which looks similar?
The macro probably would have a multiple evaluation hazard, so I'd be inclined to invent a function. I mean, yeah, you could use a do { } while (0) block to fix the multiple evaluation, but complex macros are harder to read than functions, and not necessarily any faster. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers