Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kpRHF-00039t-G9 for pgsql-admin@arkaria.postgresql.org; Wed, 16 Dec 2020 07:31:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kpRHE-0001oq-9X for pgsql-admin@arkaria.postgresql.org; Wed, 16 Dec 2020 07:31:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kpRHD-0001oS-V4 for pgsql-admin@lists.postgresql.org; Wed, 16 Dec 2020 07:31:12 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kpRH8-0000d1-T2 for pgsql-admin@lists.postgresql.org; Wed, 16 Dec 2020 07:31:10 +0000 Received: by mail-ej1-x62a.google.com with SMTP id 6so16636677ejz.5 for ; Tue, 15 Dec 2020 23:31:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=tGrg7LY8iC1NGW7DltoA6G2xSF0md2eqelTkwGb7zig=; b=LJtdD87bBjQX8sDdtpELLN7jgitGToJzZAm6o2jhjORdl3/0GtGywnqkVVzSMFKjDe yvQQI1oC55wQL+1hjKN8XnTCjSlkFPKBRCTvhmmwm7JSIfmIdeYO6nJ2PswL/J5NcQDc wpFSgfdkbU/G0/lM5+vcwZRBC8INcznjFlrubnopDo27EcoUiWe/1BfFBb3fRDR6ttkG WMUumScceZjNJYJ9QYwEgVCqkdadTvUW0mtRZiogxe/xCHSl1YffPvdA5NJTs5QPHGiU JUUsBtNq4eKtbmjx0w6tuM2M1yOR+A/hHF/IH8G2Kwujef3hx4/ndqxsmSRKYdIcJLzX gHrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=tGrg7LY8iC1NGW7DltoA6G2xSF0md2eqelTkwGb7zig=; b=Op47sKHNoRwDuLvfqANgjQe0AcmjFG/mbh8W0X2xBCgMLV8geyWuFpUuznG1Lvzt9u b1aSCIAgF9CcAuQQct4MFa5ev6xm9WjyznC0J8JNkfqoy/4UdL5kHa7kaXrrZvr9dTEO mAuFPU2qr9mtlTn4we8ttDaF0p+VWqA2zkxLlOdjVVKgjGkhnbgHeObhXO4ybB0OqrXy EJcVeG0lRkroqNzG8TP1vJvi6RXDJGL3dwalzF8k0R2KA63cJz7VCw15o6lzGbgvyCC0 MiEjlpTIadYK1cQiMGxoXjyy9z5jnUQo1qC2LoTrrZUuUB+qM/Vy63PfD+z1TEAnf2OX E6qQ== X-Gm-Message-State: AOAM532tCYFBMR4surwtOsO5PPJxiBGaJPngs9OncH6/0CLNzUbEnJ+L oUfVbsPaGHZvw4v4ScURtzhizg== X-Google-Smtp-Source: ABdhPJw1qsk1mw/BjCP81/KNJh6ixI9Vpj8l4AxSv06aBz82Q8cLN3C+RiOJaXmV1sGxGSNuqIChyQ== X-Received: by 2002:a17:906:77c5:: with SMTP id m5mr7561179ejn.424.1608103864049; Tue, 15 Dec 2020 23:31:04 -0800 (PST) Received: from localhost.localdomain (217-149-173-47.nat.highway.telekom.at. [217.149.173.47]) by smtp.gmail.com with ESMTPSA id dk16sm744902ejb.85.2020.12.15.23.31.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 23:31:03 -0800 (PST) Message-ID: <1e423dc63670ab2a01ee23f78337767b0c630326.camel@cybertec.at> Subject: Re: table lookup for pg_stat_progress_vacuum doesn't work From: Laurenz Albe To: Uwe.deReuter@t-systems.com, pgsql-admin@lists.postgresql.org Date: Wed, 16 Dec 2020 08:31:02 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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