> I also found the absence of a function like resetStringInfo() a bit
> puzzling. A found a lot of places where the code was resetting the
> "len" field to 0 and assigning '\0' to the data field to reset the
> variable. This seems to be the only missing API which will be needed
> while working with the StringInfo type.
er, what? stringinfo.h has:
* Clears the current content of the StringInfo, if any. The
* StringInfo remains valid.
extern void resetStringInfo(StringInfo str);
In response to
pgsql-hackers by date
|Next:||From: Alvaro Herrera||Date: 2007-08-29 15:11:06|
|Subject: Re: StringInfo misc. issues|
|Previous:||From: Tom Lane||Date: 2007-08-29 14:46:10|
|Subject: Re: reviving dead buildfarm animals |