Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGwbq-0002Zt-59 for pgsql-admin@arkaria.postgresql.org; Tue, 13 Dec 2016 23:35:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cGwbp-0001Ji-Gn for pgsql-admin@arkaria.postgresql.org; Tue, 13 Dec 2016 23:35:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cGwa9-0007lR-P4 for pgsql-admin@postgresql.org; Tue, 13 Dec 2016 23:34:01 +0000 Received: from lists.commandprompt.com ([69.168.55.30]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cGwa6-0004kv-Bx for pgsql-admin@postgresql.org; Tue, 13 Dec 2016 23:34:00 +0000 Received: from [192.168.1.61] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 8419F6C9; Tue, 13 Dec 2016 15:33:56 -0800 (PST) Received: from c-73-225-27-179.hsd1.wa.comcast.net ([73.225.27.179] helo=[192.168.1.61]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.5.1); 13 Dec 2016 15:33:56 -0800 Subject: Re: how to find a pg_toast table's primary table To: ProPAAS DBA , pgsql-admin@postgresql.org References: From: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: Date: Tue, 13 Dec 2016 15:33:55 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Assp-Version: 2.5.1(16177) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-72036-04133 X-Assp-Session: 7F30ED693D68 (mail 1) X-Assp-Original-Subject: Re: [ADMIN] how to find a pg_toast table's primary table X-Assp-Client-SSL: yes X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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