|
55 | 55 | *
|
56 | 56 | *
|
57 | 57 | * IDENTIFICATION
|
58 |
| - * $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.58 2007/09/12 22:14:59 alvherre Exp $ |
| 58 | + * $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.59 2007/09/23 20:07:33 tgl Exp $ |
59 | 59 | *
|
60 | 60 | *-------------------------------------------------------------------------
|
61 | 61 | */
|
@@ -2576,7 +2576,7 @@ autovacuum_do_vac_analyze(Oid relid, bool dovacuum, bool doanalyze,
|
2576 | 2576 | * equivalent command was to be issued manually.
|
2577 | 2577 | *
|
2578 | 2578 | * Note we assume that we are going to report the next command as soon as we're
|
2579 |
| - * done with the current one, andexiting right after the last one, so we don't |
| 2579 | + * done with the current one, andexit right after the last one, so we don't |
2580 | 2580 | * bother to report "<IDLE>" or some such.
|
2581 | 2581 | */
|
2582 | 2582 | staticvoid
|
@@ -2611,6 +2611,9 @@ autovac_report_activity(VacuumStmt *vacstmt, Oid relid)
|
2611 | 2611 | " %s.%s",nspname,relname);
|
2612 | 2612 | }
|
2613 | 2613 |
|
| 2614 | +/* Set statement_timestamp() to current time for pg_stat_activity */ |
| 2615 | +SetCurrentStatementStartTimestamp(); |
| 2616 | + |
2614 | 2617 | pgstat_report_activity(activity);
|
2615 | 2618 | }
|
2616 | 2619 |
|
|