Re: I saw a table that wasn't there - Mailing list pgsql-odbc

From Tom Lane
Subject Re: I saw a table that wasn't there
Date
Msg-id 24609.988985429@sss.pgh.pa.us
Whole thread Raw
In response to I saw a table that wasn't there  ("Tom.Bakken" <Tom.Bakken@tx.usda.gov>)
List pgsql-odbc
"Tom.Bakken" <Tom.Bakken@tx.usda.gov> writes:
> My problem reminds me of the poem "I saw a man who wasn't there".
> I created a table some time ago.  When I try to drop it it says "no such
> file or directory".  When I run vacuum or copy out it also says it isn't
> there.  However, when I try to create a table with the same name it says
> the table already exists.

> I'm running Postgres 6.5.2 on Red Hat LINUX 6.1.

I suppose you got into this state by trying to roll back a DROP TABLE.
Doesn't work in pre-7.1 Postgres --- the physical file is already
removed as soon as you execute the DROP command.

(a) Create a physical file for the table ("touch
$PGDATA/base/dbname/tablename") and then you'll be able to drop the
thing.

(b) Update to 7.1 ASAP.

            regards, tom lane

pgsql-odbc by date:

Previous
From: "Tom.Bakken"
Date:
Subject: I saw a table that wasn't there
Next
From: "Hiroshi Inoue"
Date:
Subject: RE: Writing Large Objects to Postgresql via ODBC using VB