MCPcopy Create free account
hub / github.com/apache/cloudberry / initStringInfo

Function initStringInfo

src/common/stringinfo.c:58–66  ·  view source on GitHub ↗

* initStringInfo * * Initialize a StringInfoData struct (with previously undefined contents) * to describe an empty string. */

Source from the content-addressed store, hash-verified

56 * to describe an empty string.
57 */
58void
59initStringInfo(StringInfo str)
60{
61 int size = 1024; /* initial default buffer size */
62
63 str->data = (char *) palloc(size);
64 str->maxlen = size;
65 resetStringInfo(str);
66}
67
68/*
69 * initStringInfoOfSize

Callers 15

deparseFromExprForRelFunction · 0.85
deparseAnalyzeSizeSqlFunction · 0.85
postgres_fdw_validatorFunction · 0.85
postgresGetForeignPlanFunction · 0.85
postgresPlanDirectModifyFunction · 0.85
estimate_path_cost_sizeFunction · 0.85
create_cursorFunction · 0.85
execute_foreign_modifyFunction · 0.85

Calls 2

resetStringInfoFunction · 0.85
pallocFunction · 0.70

Tested by 12

errdetail_internal_implFunction · 0.68
initialize_worker_spiFunction · 0.68
worker_spi_mainFunction · 0.68
gp_execute_on_serverFunction · 0.68
generate_uao_sourcefilesFunction · 0.68
convert_sourcefiles_inFunction · 0.68
test_XLogWalRcvSendReplyFunction · 0.68
check_ao_record_presentFunction · 0.68
ecpg_filter_sourceFunction · 0.68
ecpg_filter_stderrFunction · 0.68
ecpg_start_testFunction · 0.68