postgres.git / summary / log / commit / refs

commit    630de1131dca80fd63cecfbe6a14b8a5b405b434
Author:   Alvaro Herrera <alvherre@alvh.no-ip.org>
Date:     Fri Feb 22 16:00:15 2019 +0000
First released in: 12.0, 10.8, 11.3

    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


src/backend/postmaster/autovacuum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); [parent: c08b65bc4371]