Definition at line 1148 of file raster2pgsql.c.
References _, append_sql_to_buffer(), rtalloc(), rterror(), and rtgdalraster::sql.
Referenced by process_rasters().
1155 assert(table != NULL);
1157 len = strlen(
"VACUUM ANALYZE ;") + 1;
1159 len += strlen(schema);
1160 len += strlen(table);
1162 sql =
rtalloc(
sizeof(
char) * len);
1164 rterror(
_(
"vacuum_table: Could not allocate memory for VACUUM statement"));
1167 sprintf(sql,
"VACUUM ANALYZE %s%s;",
1168 (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)