more cleanups...of note, appendStringInfo now performs like sprintf(),
Marc G. Fournier <scrappy@hub.org>
more cleanups...of note, appendStringInfo now performs like sprintf(), where you state a format and arguments. the old behavior required each appendStringInfo to have to have a sprintf() before it if any formatting was required. Also shortened several instances where there were multiple appendStringInfo() calls in a row, doing nothing more then adding one more word to the String, instead of doing them all in one call.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/explain.c | modified | +20 −9 |
| src/backend/commands/user.c | modified | +7 −7 |
| src/backend/commands/view.c | modified | +2 −2 |
| src/backend/executor/execAmi.c | modified | +2 −2 |
| src/backend/executor/nodeHash.c | modified | +2 −2 |
| src/backend/libpq/portal.c | modified | +2 −2 |
| src/backend/libpq/util.c | modified | +2 −2 |
| src/backend/lib/stringinfo.c | modified | +21 −19 |
| src/backend/nodes/outfuncs.c | modified | +36 −57 |
| src/backend/utils/adt/nabstime.c | modified | +2 −6 |
| src/backend/utils/sort/psort.c | modified | +32 −24 |
| src/include/lib/stringinfo.h | modified | +2 −2 |