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 22:36:08
Message-ID: 8813.1035239768@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:
> Is there someone who knows how to fix this?
>
> 2002-10-16 14:29:08 [18326] ERROR: _mdfd_getrelnfd: cannot open
> relation
> pg_temp_15300_53: No such file or directory

Depending on which PG version you are running, you may be able to just
drop that temp table. If that doesn't work, create a dummy file to
match it, and then drop it. You need a command like

touch $PGDATA/base/DBOID/FILENODE

where DBOID is the OID of your database as seen in pg_database, and
FILENODE is the pg_class.relfilenode value for the temp table.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Shraibman 2002-10-21 23:01:20 Re: signals??
Previous Message Andrew Bartley 2002-10-21 22:16:17 ERROR: _mdfd_getrelnfd: cannot open relation pg_temp_15300_53: No such file or directory