Re: resetStringInfo - Mailing list pgsql-patches

From Tom Lane
Subject Re: resetStringInfo
Date
Msg-id 1822.1172944691@sss.pgh.pa.us
Whole thread Raw
In response to resetStringInfo  (Neil Conway <neilc@samurai.com>)
Responses Re: resetStringInfo
List pgsql-patches
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

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Allow \pset to parse "on or off" for boolean values
Next
From: Alvaro Herrera
Date:
Subject: Re: resetStringInfo