pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mikko Partio <mpartio@gmail.com>
To: Pavan Deolasee <pavan.deolasee@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: FATAL: could not open relation xxx: No such file or directory
Date: Thu, 17 Apr 2008 13:44:22 +0300
Message-ID: <2ca799770804170344o65291ce3pa56a2694f7a15bc5@mail.gmail.com> (raw)
In-Reply-To: <2e78013d0804170336j4299161bm3f280fc9b930b474@mail.gmail.com>
References: <2ca799770804090647m759b72f9gf2d49b4bf7cc8bdf@mail.gmail.com>
	<2ca799770804142336q6422af38me80054c82699d1e2@mail.gmail.com>
	<2ca799770804170308m367eaea2nc7899198c0b260e0@mail.gmail.com>
	<2e78013d0804170336j4299161bm3f280fc9b930b474@mail.gmail.com>

On Thu, Apr 17, 2008 at 1:36 PM, Pavan Deolasee <pavan.deolasee@gmail.com>
wrote:

> On Thu, Apr 17, 2008 at 3:38 PM, Mikko Partio <mpartio@gmail.com> wrote:
>
> >
> > 2008-04-17 13:05:30 EEST [8435]: [32-1] ERROR:  could not open relation
> > 1663/16386/359232: No such file or directory
> >
>
> Looks like a corrupt index to me. DId you try REINDEX on the table ?
>


Hi Pavan and thanks for your reply.

I tried to reindex the individual indexes in the table:

# reindex index xxx_idx;
ERROR:  could not open relation 1663/16386/359232: No such file or directory

Since I thought the trouble may lie in the system catalogue indexes I issued
a REINDEX SYSTEM db, which went through with no errors. After that I tried
to remove indexes from the table in question:

# drop index xxx_idx;
ERROR:  could not read block 0 of relation 1663/16386/2673: read only 0 of
8192 bytes

Hmm.. this is a different oid

# select 2673::regclass;
         regclass
--------------------------
 pg_depend_depender_index
(1 row)

But I just reindexed it!

# reindex table pg_depend;
WARNING:  could not remove relation 1663/16386/2673: No such file or
directory
REINDEX

When I fire pg_dump to take a last minute backup I see this error:

pg_dump: Error message from server: ERROR:  could not open relation
1663/16386/544529: No such file or directory
pg_dump: The command was: SELECT tgname, tgfoid::pg_catalog.regproc as
tgfname, tgtype, tgnargs, tgargs, tgenabled, tgisconstraint, tgconstrname,
tgdeferrable, tgconstrrelid, tginitdeferred, tableoid, oid,
tgconstrrelid::pg_catalog.regclass as tgconstrrelname from
pg_catalog.pg_trigger t where tgrelid = '294134'::pg_catalog.oid and
tgconstraint = 0

# reindex table pg_catalog.pg_trigger;
WARNING:  could not remove relation 1663/16386/544529: No such file or
directory
REINDEX

Seems like the whole db is falling apart.

Regards

Mikko

view thread (14+ messages)  latest in thread

Message-ID: <2ca799770804170344o65291ce3pa56a2694f7a15bc5@mail.gmail.com>
Permalink:  ../2ca799770804170344o65291ce3pa56a2694f7a15bc5@mail.gmail.com/
Also on:    postgresql.org/message-id/2ca799770804170344o65291ce3pa56a2694f7a15bc5@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: mpartio@gmail.com, pavan.deolasee@gmail.com
  Subject: Re: FATAL: could not open relation xxx: No such file or directory
  In-Reply-To: <2ca799770804170344o65291ce3pa56a2694f7a15bc5@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox