mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-31 14:27:23 +02: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:
parent
c08b65bc43
commit
630de1131d
@ -2646,7 +2646,7 @@ perform_work_item(AutoVacuumWorkItem *workitem)
|
|||||||
if (!cur_relname || !cur_nspname || !cur_datname)
|
if (!cur_relname || !cur_nspname || !cur_datname)
|
||||||
goto deleted2;
|
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 */
|
/* clean up memory before each work item */
|
||||||
MemoryContextResetAndDeleteChildren(PortalContext);
|
MemoryContextResetAndDeleteChildren(PortalContext);
|
||||||
|
Loading…
Reference in New Issue
Block a user