Thread: resetStringInfo
View Single Post

   
  #4 (permalink)  
Old 04-18-2008, 09:39 AM
Tom Lane
 
Posts: n/a
Default Re: resetStringInfo

Neil Conway <neilc@samurai.com> writes:
> Attached is a patch that makes a minor addition to the StringInfo API:
> resetStringInfo(), which clears the current content of the StringInfo
> but leaves it valid for future operations.


> I needed this for an external project, but ISTM this would be worth
> including in mainline:


Sure. I'm pretty sure there are a number of places currently doing this
"by hand"; would you mind looking around to see if you can fix 'em up
to use this function?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Reply With Quote