Re: DROP TABLESPACE fails - Mailing list pgsql-general

From Tom Lane
Subject Re: DROP TABLESPACE fails
Date
Msg-id 24446.1155002257@sss.pgh.pa.us
Whole thread Raw
In response to Re: DROP TABLESPACE fails  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
Michael Fuhr <mike@fuhr.org> writes:
> On Mon, Aug 07, 2006 at 05:36:49PM -0500, Steve Peterson wrote:
>> DROP TABLESPACE x returns 'tablespace "x" is not empty', but if I
>> examine the 'referenced by' tab in pgAdmin nothing is listed.  The
>> tablespace directory contains several very large files.
>>
>> Can these files be deleted safely with the server shut down?

> I'd recommend investigating what the files are before deleting them.

Indeed.

> The large files are probably within a database's subdirectory and
> their names are probably numbers.

Yeah, most likely they belong to a different database.  We should try
harder to give a helpful error message in this case ... we can't really
identify the files but we could tell you which database they belong to.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: FATAL Error
Next
From: Tom Lane
Date:
Subject: Re: Disabling and enabling constraints and triggers to make pg_restore work