Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W7hcy-0000Ly-LM for pgsql-admin@arkaria.postgresql.org; Mon, 27 Jan 2014 08:33:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W7hcy-0001oe-43 for pgsql-admin@arkaria.postgresql.org; Mon, 27 Jan 2014 08:33:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W7hcx-0001oX-4e for pgsql-admin@postgresql.org; Mon, 27 Jan 2014 08:33:07 +0000 Received: from adsltrust.ath.forthnet.gr ([194.219.204.174] helo=smadev.internal.net) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W7hck-0006af-Qa for pgsql-admin@postgresql.org; Mon, 27 Jan 2014 08:33:06 +0000 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.14.7/8.14.7) with ESMTP id s0R8Wn2b007787 for ; Mon, 27 Jan 2014 10:32:49 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Message-ID: <52E619B1.903@matrix.gatewaynet.com> Date: Mon, 27 Jan 2014 10:32:49 +0200 From: Achilleas Mantzios User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Easy way to know the original table row/column given a pg_toast.pg_toast_XXXX chunk_id ? References: <52E280A5.9000007@matrix.gatewaynet.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) 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 25/01/2014 01:01, Sergey Konoplev wrote: > On Fri, Jan 24, 2014 at 7:03 AM, Achilleas Mantzios > wrote: > [...] >> I understand the chunk_id is the "oid" of the "value" to be toasted, is >> there any way to get to the row/column >> of the toasted table, faster than the aforementioned exhaustive search? > I guess there are no way to do it except the search. Try to look at > this article [1], it perfectly describes what one needs to do in such > cases as yours, and contains all the automation stuff also. Hope you > will find it useful. > > [1] http://www.databasesoup.com/2013/10/de-corrupting-toast-tables.html > Very useful, Thank you! -- Achilleas Mantzios Head of IT DEV IT DEPT Dynacom Tankers Mgmt -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin