Skip to content

Commit 59c8415

Browse files
committed
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.
1 parent 53e99f5 commit 59c8415

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/tcop/postgres.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.538 2007/11/15 21:14:38 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.539 2007/12/06 14:32:54 alvherre Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -2578,6 +2578,10 @@ ProcessInterrupts(void)
25782578
ereport(ERROR,
25792579
(errcode(ERRCODE_QUERY_CANCELED),
25802580
errmsg("canceling statement due to statement timeout")));
2581+
else if (IsAutoVacuumWorkerProcess())
2582+
ereport(ERROR,
2583+
(errcode(ERRCODE_QUERY_CANCELED),
2584+
errmsg("canceling autovacuum task")));
25812585
else
25822586
ereport(ERROR,
25832587
(errcode(ERRCODE_QUERY_CANCELED),

0 commit comments

Comments
 (0)