Definition at line 1118 of file raster2pgsql.c.
References _, append_sql_to_buffer(), rtalloc(), rterror(), and rtgdalraster::sql.
Referenced by process_rasters().
1125 assert(table != NULL);
1127 len = strlen(
"ANALYZE ;") + 1;
1129 len += strlen(schema);
1130 len += strlen(table);
1132 sql =
rtalloc(
sizeof(
char) * len);
1134 rterror(
_(
"analyze_table: Could not allocate memory for ANALYZE TABLE statement"));
1137 sprintf(sql,
"ANALYZE %s%s;",
1138 (schema != NULL ? schema :
""),
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
void * rtalloc(size_t size)
Wrappers used for managing memory.
static int append_sql_to_buffer(STRINGBUFFER *buffer, const char *str)