git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 927332b) | patch
Add destroyStringInfo function for cleaning up StringInfos
2024年3月16日 22:18:28 +0000 (23:18 +0100)
2024年3月16日 22:18:28 +0000 (23:18 +0100)
commit b7831865159d5fb6f0d263e6023f0986589fe254
Add destroyStringInfo function for cleaning up StringInfos

destroyStringInfo() is a counterpart to makeStringInfo(), freeing a
palloc'd StringInfo and its data. This is a convenience function to
align the StringInfo API with the PQExpBuffer API. Originally added
in the OAuth patchset, it was extracted and committed separately in
order to aid upcoming JSON work.

Author: Daniel Gustafsson <daniel@yesql.se>
Author: Jacob Champion <jacob.champion@enterprisedb.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CAOYmi+mWdTd6ujtyF7MsvXvk7ToLRVG_tYAcaGbQLvf=N4KrQw@mail.gmail.com
src/backend/backup/basebackup.c diff | blob | blame | history
src/backend/commands/subscriptioncmds.c diff | blob | blame | history
src/backend/utils/adt/jsonb.c diff | blob | blame | history
src/backend/utils/adt/xml.c diff | blob | blame | history
src/bin/pg_combinebackup/pg_combinebackup.c diff | blob | blame | history
src/common/stringinfo.c diff | blob | blame | history
src/include/lib/stringinfo.h diff | blob | blame | history
src/test/regress/pg_regress.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /