pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Uwe.deReuter@t-systems.com
To: pgsql-admin@lists.postgresql.org
Subject: Re: table lookup for pg_stat_progress_vacuum doesn't work
Date: Wed, 16 Dec 2020 08:31:02 +0100
Message-ID: <1e423dc63670ab2a01ee23f78337767b0c630326.camel@cybertec.at> (raw)
In-Reply-To: <FR2P281MB01564C115A4122B07655840BD3C50@FR2P281MB0156.DEUP281.PROD.OUTLOOK.COM>
References: <FR2P281MB01564C115A4122B07655840BD3C50@FR2P281MB0156.DEUP281.PROD.OUTLOOK.COM>

On Wed, 2020-12-16 at 07:25 +0000, Uwe.deReuter@t-systems.com wrote:
> We want to lookup the table name for entries we see in pg_stat_progress_vacuum.
> When we do this based on relid from pg_stat_progress_vacuum we don’t find an
>  entry in the pg_class table (no match where pg_stat_progress_vacuum.relid=pg_class.oid).
> Should that happen at all and where can I do the lookup if not in pg_class ?

The table is probably in a database different from the one you are connected to.
Look at the "datname" column.

Every database has its own catalog tables.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (2+ messages)

Message-ID: <1e423dc63670ab2a01ee23f78337767b0c630326.camel@cybertec.at>
Permalink:  ../1e423dc63670ab2a01ee23f78337767b0c630326.camel@cybertec.at/
Also on:    postgresql.org/message-id/1e423dc63670ab2a01ee23f78337767b0c630326.camel@cybertec.at

 · 

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-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, Uwe.deReuter@t-systems.com, pgsql-admin@lists.postgresql.org
  Subject: Re: table lookup for pg_stat_progress_vacuum doesn't work
  In-Reply-To: <1e423dc63670ab2a01ee23f78337767b0c630326.camel@cybertec.at>

* 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