pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: pgsql-hackers@postgresql.org
Subject: BRIN summarize autovac_report_workitem passes datname as relname
Date: Wed, 20 Feb 2019 12:55:52 -0600
Message-ID: <20190220185552.GR28750@telsasoft.com> (raw)

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 ?




view thread (3+ messages)  latest in thread

Message-ID: <20190220185552.GR28750@telsasoft.com>
Permalink:  ../20190220185552.GR28750@telsasoft.com/
Also on:    postgresql.org/message-id/20190220185552.GR28750@telsasoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: pryzby@telsasoft.com
  Subject: Re: BRIN summarize autovac_report_workitem passes datname as relname
  In-Reply-To: <20190220185552.GR28750@telsasoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox