diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-02-22 13:00:15 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-02-22 13:00:15 -0300 |
commit | 398cc6fb93814423f205dee435d1a174068c041a (patch) | |
tree | 57d0105e7b159e9ad736ed48e1c0ad99c8101aae /src | |
parent | affee8b14c68d8ac8815406be39a68403c4a815e (diff) | |
download | postgresql-398cc6fb93814423f205dee435d1a174068c041a.tar.gz postgresql-398cc6fb93814423f205dee435d1a174068c041a.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
Diffstat (limited to 'src')
-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 0a8fb3d58f0..f40147a3477 100644 --- a/src/backend/postmaster/autovacuum.c +++ b/src/backend/postmaster/autovacuum.c @@ -2656,7 +2656,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); |