Re: ERROR: could not read block 4707 of relation 1663/16384/16564: Success

From: "Tomas Vondra" <tv(at)fuzzy(dot)cz>
To: "Deniz Atak" <denizatak(at)gmail(dot)com>
Cc: "Tomas Vondra" <tv(at)fuzzy(dot)cz>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: could not read block 4707 of relation 1663/16384/16564: Success
Date: 2011-08-01 14:13:28
Message-ID: 18e2d4c1316c75cb3414e7104b173fad.squirrel@sq.gransy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1 Srpen 2011, 13:55, Deniz Atak wrote:
> Hi Thomas,
>
> thanks for your answer. We decided not to go further with this error,
> because soon we will have another product that replaces this one. Because
> I
> want to learn more about this topic, I did the following:
>
> Before I write your code, I tried:
> select oid,ctid,relname from pg_class where ctid='(4707,0)';

You need to select from the relation with relfileid 16564, not from
pg_class. Use this

SELECT relname FROM pg_class WHERE relfilenode = 16564;

and then select from this relation.

And if you want to see the items on block 4707, you can do something like
this:

SELECT * FROM relation WHERE ctid >= '(4707,0)' AND ctid < '(4708,0)';

although it'll probably fail. Maybe "pageinspect" contrib module will tell
you more about the page
(http://www.postgresql.org/docs/current/static/pageinspect.html)

Tomas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Clodoaldo Neto 2011-08-01 14:17:24 Re: Error: operator does not exist: integer = integer
Previous Message Atul Goel 2011-08-01 14:12:21 Postgres 8.0 upgrade to 9.0