diff options
author | Alvaro Herrera | 2019-02-22 16:00:16 +0000 |
---|---|---|
committer | Alvaro Herrera | 2019-02-22 16:00:16 +0000 |
commit | 98098faaff77a632c759c967f3b956524e492ee4 (patch) | |
tree | 745273d99291d53d76135bfe01116b8dffc2297b | |
parent | 1373ba55c9b9c9a5e4705daa03643255b4de1519 (diff) |
Report correct name in autovacuum "work items" activity
We were reporting the database name instead of the relation name to
pg_stat_activity. Repair.
Reported-by: Justin Pryzby
Discussion: https://postgr.es/m/[email protected]
-rw-r--r-- | src/backend/postmaster/autovacuum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c index d1177b3855..347f91e937 100644 --- a/src/backend/postmaster/autovacuum.c +++ b/src/backend/postmaster/autovacuum.c @@ -2633,7 +2633,7 @@ perform_work_item(AutoVacuumWorkItem *workitem) if (!cur_relname || !cur_nspname || !cur_datname) goto deleted2; - autovac_report_workitem(workitem, cur_nspname, cur_datname); + autovac_report_workitem(workitem, cur_nspname, cur_relname); /* clean up memory before each work item */ MemoryContextResetAndDeleteChildren(PortalContext); |