Skip to content

Commit 7aa4164

Browse files
committed
Mark autovacuum entries in pg_stat_activity so that they can be easily
distinguished from user-invoked commands. Per suggestion from Tom Lane.
1 parent 1460c82 commit 7aa4164

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/postmaster/autovacuum.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
*
5656
*
5757
* IDENTIFICATION
58-
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.70 2008/01/01 19:45:51 momjian Exp $
58+
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.71 2008/01/14 13:39:25 alvherre Exp $
5959
*
6060
*-------------------------------------------------------------------------
6161
*/
@@ -2658,11 +2658,11 @@ autovac_report_activity(VacuumStmt *vacstmt, Oid relid)
26582658
/* Report the command and possible options */
26592659
if (vacstmt->vacuum)
26602660
snprintf(activity, MAX_AUTOVAC_ACTIV_LEN,
2661-
"VACUUM%s",
2661+
"autovacuum: VACUUM%s",
26622662
vacstmt->analyze ? " ANALYZE" : "");
26632663
else
26642664
snprintf(activity, MAX_AUTOVAC_ACTIV_LEN,
2665-
"ANALYZE");
2665+
"autovacuum: ANALYZE");
26662666

26672667
/*
26682668
* Report the qualified name of the relation.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy