Re: [PATCHES] cleanup StringInfo usage

2006-02-28 Thread Neil Conway
On Tue, 2006-02-28 at 14:21 -0500, Neil Conway wrote: > Attached is a patch that replaces a bunch of places where StringInfos > are unnecessarily allocated on the heap rather than the stack. Applied to HEAD. -Neil ---(end of broadcast)--- TIP 6:

[PATCHES] cleanup StringInfo usage

2006-02-28 Thread Neil Conway
Attached is a patch that replaces a bunch of places where StringInfos are unnecessarily allocated on the heap rather than the stack. That is, this is sub-optimal: { StringInfo str; str = makeStringInfo(); /* use str */ pfree(str->data); pfree(str); } If the StringInfo doesn'