Re: ERROR: _mdfd_getrelnfd: cannot open relation pg_temp_15300_53: No such file or directory

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Andrew Bartley" <abartley(at)evolvosystems(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: _mdfd_getrelnfd: cannot open relation pg_temp_15300_53: No such file or directory
Date: 2002-10-21 23:30:20
Message-ID: 13491.1035243020@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Andrew Bartley" <abartley(at)evolvosystems(dot)com> writes:
> I have tried to but together a shell script to touch these files. But it
> seems that the table in question has a second pg_toast oid associated with
> it.

That's interesting ... if both those physical files went away while the
pg_class rows remained, it suggests some systematic problem rather than
just a random glitch. I doubt we'll be able to learn anything about the
cause if we're not allowed into the database machine though :-(

Anyway, the pg_class.reltoastrelid field for the temp table gives you
the OID of the pg_class row for its TOAST table, from which you can get
the relfilenode value to touch for the TOAST table.

Very likely, the TOAST table's index has got the same disease: to find
it, get the reltoastidxid field from the TOAST table's pg_class row, and
again go to that OID in pg_class to see its relfilenode value.

(Actually, in 7.2 you'll almost certainly find that relfilenode of each
of these rows matches its OID, but to be perfectly safe you should look
up and use the relfilenode.)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Bartley 2002-10-21 23:50:18 Re: ERROR: _mdfd_getrelnfd: cannot open relation pg_temp_15300_53: No such file or directory
Previous Message Williams, Travis L, NPONS 2002-10-21 23:28:33 Re: perfomance question/issues