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

From: D M <dm(dot)aeqa(at)gmail(dot)com>
To: Deniz Atak <denizatak(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: ERROR: could not read block 4707 of relation 1663/16384/16564: Success
Date: 2011-07-30 20:25:41
Message-ID: 67F26198-44CB-453C-AF13-B831119A07BB@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

My guess is some one moved the data folder or the directory got deleted (/var/lib/pgsql/9.0/data/.../...1663/16384/16564). Without server restart. I am sure some experts gonna answer this very well.

Thanks
Deepak
On Jul 30, 2011, at 2:01 AM, Deniz Atak <denizatak(at)gmail(dot)com> wrote:

> Hi,
>
> I am using postgresql on Glassfish server and I have EJB 3.0 for ORM. I am trying to run a query in PSQL but receiving following error:
>
> Local Exception Stack:
> Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.0.v20091031-r5713): org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: org.postgresql.util.PSQLException: ERROR: could not read block 4707 of relation 1663/16384/16564: Success
> Error Code: 0
> Call: select src_ip from table where date > '2011.07.29' AND date < '2011.07.30' AND ( (src_ip = 'anIP' ) OR ( src_ip = 'anotherIP' ) ) group by src_ip;
> bind => [2011-07-29 00:00:00.0, 2011-07-30 00:00:00.0, 195.122.20.236, 195.122.20.88, 500, 0]
> Query: ResultSetMappingQuery(sql="select src_ip from table where date > '2011.07.29' AND date < '2011.07.30' AND ( (src_ip = 'anIP' ) OR ( src_ip = 'anotherIP' ) ) group by src_ip; ")
>
> It is kind of weird to have an error that ends with success :)
>
> Do you have any opinion about this problem? Thanks in advance.
>
> Deniz
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2011-07-30 20:45:32 Re: ERROR: could not read block 4707 of relation 1663/16384/16564: Success
Previous Message Gavin Flower 2011-07-30 11:49:18 Re: Finding referecing and referenced tables, adaptation from David Fetter's solution