OSDN Git Service

Add resetStringInfo(), which clears the content of a StringInfo, and
authorNeil Conway <neilc@samurai.com>
Sat, 3 Mar 2007 19:32:55 +0000 (19:32 +0000)
committerNeil Conway <neilc@samurai.com>
Sat, 3 Mar 2007 19:32:55 +0000 (19:32 +0000)
commit90d76525c5cc2f3f4781351a1d99be839dfa2874
tree75ee2db58298898533663d779d711879c43edb8d
parent053981f4054f6dfcda0ce65566605b49ca366a97
Add resetStringInfo(), which clears the content of a StringInfo, and
fixup various places in the tree that were clearing a StringInfo by hand.
Making this function a part of the API simplifies client code slightly,
and avoids needlessly peeking inside the StringInfo interface.
contrib/tablefunc/tablefunc.c
src/backend/catalog/pg_shdepend.c
src/backend/commands/copy.c
src/backend/lib/stringinfo.c
src/backend/libpq/pqcomm.c
src/backend/storage/lmgr/deadlock.c
src/backend/tcop/fastpath.c
src/backend/tcop/postgres.c
src/backend/utils/adt/rowtypes.c
src/backend/utils/adt/xml.c
src/include/lib/stringinfo.h