From 640fd1b54359977c20aff760b8ded49f9722870c Mon Sep 17 00:00:00 2001 From: Bharath Rupireddy Date: Thu, 28 Oct 2021 02:38:30 +0000 Subject: [PATCH v1] autovacuum - be specific about error message and mem context names --- src/backend/postmaster/autovacuum.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c index 96332320a7..3f877b669d 100644 --- a/src/backend/postmaster/autovacuum.c +++ b/src/backend/postmaster/autovacuum.c @@ -754,7 +754,7 @@ AutoVacLauncherMain(int argc, char *argv[]) dlist_push_head(&AutoVacuumShmem->av_freeWorkers, &worker->wi_links); AutoVacuumShmem->av_startingWorker = NULL; - elog(WARNING, "worker took too long to start; canceled"); + elog(WARNING, "autovacuum worker took too long to start; canceled"); } } else @@ -966,10 +966,10 @@ rebuild_database_list(Oid newdb) autovac_refresh_stats(); newcxt = AllocSetContextCreate(AutovacMemCxt, - "AV dblist", + "Autovacuum dblist", ALLOCSET_DEFAULT_SIZES); tmpcxt = AllocSetContextCreate(newcxt, - "tmp AV dblist", + "Autovacuum tmp dblist", ALLOCSET_DEFAULT_SIZES); oldcxt = MemoryContextSwitchTo(tmpcxt); @@ -1179,7 +1179,7 @@ do_start_worker(void) * allocated for the database list. */ tmpcxt = AllocSetContextCreate(CurrentMemoryContext, - "Start worker tmp cxt", + "Autovacuum start worker tmp cxt", ALLOCSET_DEFAULT_SIZES); oldcxt = MemoryContextSwitchTo(tmpcxt); @@ -1981,7 +1981,7 @@ do_autovacuum(void) * relations to vacuum/analyze across transactions. */ AutovacMemCxt = AllocSetContextCreate(TopMemoryContext, - "AV worker", + "Autovacuum worker", ALLOCSET_DEFAULT_SIZES); MemoryContextSwitchTo(AutovacMemCxt); -- 2.25.1