1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

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
This commit is contained in:
Alvaro Herrera
2019-02-22 13:00:15 -03:00
parent affee8b14c
commit 398cc6fb93

View File

@ -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);