Mark autovacuum entries in pg_stat_activity so that they can be easily
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 14 Jan 2008 13:39:25 +0000 (13:39 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 14 Jan 2008 13:39:25 +0000 (13:39 +0000)
distinguished from user-invoked commands.  Per suggestion from Tom Lane.

src/backend/postmaster/autovacuum.c

index 2af3a299f4e361f7480abcebf2109e1364a41b69..3925a8aa6adc0cb0599257bbb2253917521dcdd8 100644 (file)
@@ -2658,11 +2658,11 @@ autovac_report_activity(VacuumStmt *vacstmt, Oid relid)
        /* Report the command and possible options */
        if (vacstmt->vacuum)
                snprintf(activity, MAX_AUTOVAC_ACTIV_LEN,
-                                "VACUUM%s",
+                                "autovacuum: VACUUM%s",
                                 vacstmt->analyze ? " ANALYZE" : "");
        else
                snprintf(activity, MAX_AUTOVAC_ACTIV_LEN,
-                                "ANALYZE");
+                                "autovacuum: ANALYZE");
 
        /*
         * Report the qualified name of the relation.