aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeSetOp.c
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2025-01-11 08:02:56 +0900
committerTatsuo Ishii <ishii@postgresql.org>2025-01-11 08:23:46 +0900
commita9dcbb4d5c00b703e727e14055ed70c525a86418 (patch)
treeb54947628737f971f084598c3962040f93d8ff98 /src/backend/executor/nodeSetOp.c
parentca9c6a5680d7c7dece0f7209ee7ce20c9dfe0840 (diff)
downloadpostgresql-a9dcbb4d5c00b703e727e14055ed70c525a86418.tar.gz
postgresql-a9dcbb4d5c00b703e727e14055ed70c525a86418.zip
Add new StringInfo APIs to allow callers to specify the buffer size.
Previously StringInfo APIs allocated buffers with fixed initial allocation size of 1024 bytes. This may be too large and inappropriate for some callers that can do with smaller memory buffers. To fix this, introduce new APIs that allow callers to specify initial buffer size. extern StringInfo makeStringInfoExt(int initsize); extern void initStringInfoExt(StringInfo str, int initsize); Existing APIs (makeStringInfo() and initStringInfo()) are changed to call makeStringInfoExt and initStringInfoExt respectively (via inline helper functions makeStringInfoInternal and initStringInfoInternal), with the default buffer size of 1024. Reviewed-by: Nathan Bossart, David Rowley, Michael Paquier, Gurjeet Singh Discussion: https://postgr.es/m/20241225.123704.1194662271286702010.ishii%40postgresql.org
Diffstat (limited to 'src/backend/executor/nodeSetOp.c')
0 files changed, 0 insertions, 0 deletions