Re: ERROR: could not open relation

From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: Q Master <theqmaster(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: could not open relation
Date: 2008-05-07 08:20:55
Message-ID: 48216667.4000302@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Q Master napsal(a):
> I get this strange error
>
> Caused by: org.postgresql.util.PSQLException: ERROR: could not open
> relation 1663/53544/58374: No such file or directory
>
> How do I recover from it ? Version 8.2 on windows.
>
> I think I had an hardware issue in the past where my box rebooted few
> times I assume this is due to that thing.
>
> I tried to re index them but is not working. Any ideas ?
>

You lost file related to table 58374 and database 53544. Check presence file
with name 58374 in directory base/53544.

You can determine which table is it:

1) get database name
select * from pg_database where oid=53544

2) get table name (connect to affected database)

select * from pg_class where oid=58374

Probably there is no much what you can do. Only restore from backup.

Zdenek

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gurjeet Singh 2008-05-07 08:44:34 Re: ERROR: could not open relation
Previous Message Albe Laurenz *EXTERN* 2008-05-07 07:58:25 Re: Rules to provide a virtual column