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 | 630de1131dca80fd63cecfbe6a14b8a5b405b434 (patch) | |
tree | 0afb90d87451364db254094830b5b417c76455b1 /src | |
parent | c08b65bc4371f0154566447a8cb4bc7691bf0815 (diff) | |
download | postgresql-630de1131dca80fd63cecfbe6a14b8a5b405b434.tar.gz postgresql-630de1131dca80fd63cecfbe6a14b8a5b405b434.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 b9e5b96877a..55f43b419cc 100644 --- a/src/backend/postmaster/autovacuum.c +++ b/src/backend/postmaster/autovacuum.c @@ -2646,7 +2646,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); |