Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ea72d37f
Commit
ea72d37f
authored
Sep 23, 2007
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make autovacuum report the start time of its current activity in
pg_stat_activity. Per gripe from Jim Nasby.
parent
1b3d400c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/backend/postmaster/autovacuum.c
src/backend/postmaster/autovacuum.c
+5
-2
No files found.
src/backend/postmaster/autovacuum.c
View file @
ea72d37f
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.5
8 2007/09/12 22:14:59 alvherre
Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.5
9 2007/09/23 20:07:33 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -2576,7 +2576,7 @@ autovacuum_do_vac_analyze(Oid relid, bool dovacuum, bool doanalyze,
...
@@ -2576,7 +2576,7 @@ autovacuum_do_vac_analyze(Oid relid, bool dovacuum, bool doanalyze,
* equivalent command was to be issued manually.
* equivalent command was to be issued manually.
*
*
* Note we assume that we are going to report the next command as soon as we're
* Note we assume that we are going to report the next command as soon as we're
* done with the current one, and exit
ing
right after the last one, so we don't
* done with the current one, and exit right after the last one, so we don't
* bother to report "<IDLE>" or some such.
* bother to report "<IDLE>" or some such.
*/
*/
static
void
static
void
...
@@ -2611,6 +2611,9 @@ autovac_report_activity(VacuumStmt *vacstmt, Oid relid)
...
@@ -2611,6 +2611,9 @@ autovac_report_activity(VacuumStmt *vacstmt, Oid relid)
" %s.%s"
,
nspname
,
relname
);
" %s.%s"
,
nspname
,
relname
);
}
}
/* Set statement_timestamp() to current time for pg_stat_activity */
SetCurrentStatementStartTimestamp
();
pgstat_report_activity
(
activity
);
pgstat_report_activity
(
activity
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment