From: Joshua D. Drake <jd@commandprompt.com>
To: ProPAAS DBA <dba@propaas.com>
To: pgsql-admin@postgresql.org
Subject: Re: how to find a pg_toast table's primary table
Date: Tue, 13 Dec 2016 15:33:55 -0800
Message-ID: <fa0a390a-ffbd-8da9-373a-1b981063ca4d@commandprompt.com> (raw)
In-Reply-To: <d37e27d8-7e83-e077-3e11-a13857a299de@propaas.com>
References: <d37e27d8-7e83-e077-3e11-a13857a299de@propaas.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
On 12/13/2016 03:24 PM, ProPAAS DBA wrote:
> Hi all;
>
>
> I'm seeing this table as the most vacuumed table:
>
>
> pg_toast.pg_toast_16784
>
> How do I find the primary table for this toast table?
Within the database:
select oid::regclass from pg_class where reltoastrelid='16784'::regclass;
JD;
--
Command Prompt, Inc. http://the.postgres.company/
+1-503-667-4564
PostgreSQL Centered full stack support, consulting and development.
Everyone appreciates your honesty, until you are honest with them.
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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: jd@commandprompt.com, dba@propaas.com
Subject: Re: how to find a pg_toast table's primary table
In-Reply-To: <fa0a390a-ffbd-8da9-373a-1b981063ca4d@commandprompt.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