aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2019-02-22 13:00:16 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2019-02-22 13:00:16 -0300
commit98098faaff77a632c759c967f3b956524e492ee4 (patch)
tree745273d99291d53d76135bfe01116b8dffc2297b
parent1373ba55c9b9c9a5e4705daa03643255b4de1519 (diff)
downloadpostgresql-98098faaff77a632c759c967f3b956524e492ee4.tar.gz
postgresql-98098faaff77a632c759c967f3b956524e492ee4.zip
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/20190220185552.GR28750@telsasoft.com
-rw-r--r--src/backend/postmaster/autovacuum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c
index d1177b3855f..347f91e937b 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);