dlist_push_head(&AutoVacuumShmem->av_freeWorkers,
&worker->wi_links);
AutoVacuumShmem->av_startingWorker = NULL;
- elog(WARNING, "worker took too long to start; canceled");
+ ereport(WARNING,
+ errmsg("autovacuum worker took too long to start; canceled"));
}
}
else
autovac_refresh_stats();
newcxt = AllocSetContextCreate(AutovacMemCxt,
- "AV dblist",
+ "Autovacuum database list",
ALLOCSET_DEFAULT_SIZES);
tmpcxt = AllocSetContextCreate(newcxt,
- "tmp AV dblist",
+ "Autovacuum database list (tmp)",
ALLOCSET_DEFAULT_SIZES);
oldcxt = MemoryContextSwitchTo(tmpcxt);
hctl.keysize = sizeof(Oid);
hctl.entrysize = sizeof(avl_dbase);
hctl.hcxt = tmpcxt;
- dbhash = hash_create("db hash", 20, &hctl, /* magic number here FIXME */
+ dbhash = hash_create("autovacuum db hash", 20, &hctl, /* magic number here FIXME */
HASH_ELEM | HASH_BLOBS | HASH_CONTEXT);
/* start by inserting the new database */
* allocated for the database list.
*/
tmpcxt = AllocSetContextCreate(CurrentMemoryContext,
- "Start worker tmp cxt",
+ "Autovacuum start worker (tmp)",
ALLOCSET_DEFAULT_SIZES);
oldcxt = MemoryContextSwitchTo(tmpcxt);
* relations to vacuum/analyze across transactions.
*/
AutovacMemCxt = AllocSetContextCreate(TopMemoryContext,
- "AV worker",
+ "Autovacuum worker",
ALLOCSET_DEFAULT_SIZES);
MemoryContextSwitchTo(AutovacMemCxt);