src/backend/postmaster/autovacuum.c declares:
|static void
|autovac_report_workitem(AutoVacuumWorkItem *workitem,
| const char *nspname, const char *relname)
But calls it like:
| cur_relname = get_rel_name(workitem->avw_relation);
| cur_nspname = get_namespace_name(get_rel_namespace(workitem->avw_relation));
| cur_datname = get_database_name(MyDatabaseId);
| if (!cur_relname || !cur_nspname || !cur_datname)
| goto deleted2;
|
| autovac_report_workitem(workitem, cur_nspname, cur_datname);
So I see stuff like:
|check_pg - txn_time POSTGRES_TXN_TIME OK: DB main longest txn: 164s PID:10697 database:main username: query:autovacuum: BRIN summarize public.main 1028223
I guess it should be database.namespace.relname ?