Mark autovacuum entries in pg_stat_activity so that they can be easily
distinguished from user-invoked commands. Per suggestion from Tom Lane.
This commit is contained in:
parent
1460c82151
commit
7aa4164363
@ -55,7 +55,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.70 2008/01/01 19:45:51 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.71 2008/01/14 13:39:25 alvherre Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -2658,11 +2658,11 @@ autovac_report_activity(VacuumStmt *vacstmt, Oid relid)
|
|||||||
/* Report the command and possible options */
|
/* Report the command and possible options */
|
||||||
if (vacstmt->vacuum)
|
if (vacstmt->vacuum)
|
||||||
snprintf(activity, MAX_AUTOVAC_ACTIV_LEN,
|
snprintf(activity, MAX_AUTOVAC_ACTIV_LEN,
|
||||||
"VACUUM%s",
|
"autovacuum: VACUUM%s",
|
||||||
vacstmt->analyze ? " ANALYZE" : "");
|
vacstmt->analyze ? " ANALYZE" : "");
|
||||||
else
|
else
|
||||||
snprintf(activity, MAX_AUTOVAC_ACTIV_LEN,
|
snprintf(activity, MAX_AUTOVAC_ACTIV_LEN,
|
||||||
"ANALYZE");
|
"autovacuum: ANALYZE");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Report the qualified name of the relation.
|
* Report the qualified name of the relation.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user