Re: Easy way to know the original table row/column given a pg_toast.pg_toast_XXXX chunk_id ?

From: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Easy way to know the original table row/column given a pg_toast.pg_toast_XXXX chunk_id ?
Date: 2014-01-27 08:32:49
Message-ID: 52E619B1.903@matrix.gatewaynet.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 25/01/2014 01:01, Sergey Konoplev wrote:
> On Fri, Jan 24, 2014 at 7:03 AM, Achilleas Mantzios
> <achill(at)matrix(dot)gatewaynet(dot)com> 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Rafiqul Haque 2014-01-28 12:53:41 multiple database connections
Previous Message Sergey Konoplev 2014-01-24 23:01:41 Re: Easy way to know the original table row/column given a pg_toast.pg_toast_XXXX chunk_id ?