Skip to content

Commit 630de11

Browse files
committed
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
1 parent c08b65b commit 630de11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/postmaster/autovacuum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2646,7 +2646,7 @@ perform_work_item(AutoVacuumWorkItem *workitem)
26462646
if (!cur_relname || !cur_nspname || !cur_datname)
26472647
goto deleted2;
26482648

2649-
autovac_report_workitem(workitem, cur_nspname, cur_datname);
2649+
autovac_report_workitem(workitem, cur_nspname, cur_relname);
26502650

26512651
/* clean up memory before each work item */
26522652
MemoryContextResetAndDeleteChildren(PortalContext);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy