From 59c841506c5b659bc570d49220313ef680ab236c Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Thu, 6 Dec 2007 14:32:54 +0000 Subject: [PATCH] Change wording of logged message when cancelling an autovacuum task, using american speling (unlike this commit message). Per complaint from Mike C. on bug #3790 and subsequent discussion. --- src/backend/tcop/postgres.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 43435966c9..8e2ca618a2 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.538 2007/11/15 21:14:38 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.539 2007/12/06 14:32:54 alvherre Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -2578,6 +2578,10 @@ ProcessInterrupts(void) ereport(ERROR, (errcode(ERRCODE_QUERY_CANCELED), errmsg("canceling statement due to statement timeout"))); + else if (IsAutoVacuumWorkerProcess()) + ereport(ERROR, + (errcode(ERRCODE_QUERY_CANCELED), + errmsg("canceling autovacuum task"))); else ereport(ERROR, (errcode(ERRCODE_QUERY_CANCELED), -- 2.40.0