dropping a table, leaving actual file in base/db/...

From: jim(at)reptiles(dot)org (Jim Mercer)
To: pgsql-general(at)postgreSQL(dot)org
Subject: dropping a table, leaving actual file in base/db/...
Date: 1999-03-10 21:01:29
Message-ID: m10Kq6b-00080dC@mailbox.reptiles.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


we have a process which uses a transaction to a bunch of:

begin work;
select * into tmptable from main table;
commit work;
drop table tmptable;

sometimes (always?) tmptable gets dropped from the database, but for
some reason the file /usr/pgsql/data/base/dbname/tmptable does not get
deleted.

this means that the next select into tmptable and/or create table tmptable
fails because it can't create the table.

anyone know what's up, or a work around?

--
[ Jim Mercer Reptilian Research jim(at)reptiles(dot)org +1 416 410-5633 ]
[ The telephone, for those of you who have forgotten, was a commonly used ]
[ communications technology in the days before electronic mail. ]
[ They're still easy to find in most large cities. -- Nathaniel Borenstein ]

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 1999-03-10 21:08:22 Re: [GENERAL] CREATE TEMP tname (fname char);
Previous Message Tom Hanlon 1999-03-10 20:58:58 Webstore