Re: DROP TABLESPACE fails

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: Steve Peterson <stevep-hv(at)zpfe(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: DROP TABLESPACE fails
Date: 2006-08-08 01:57:37
Message-ID: 24446.1155002257@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Fuhr <mike(at)fuhr(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-08-08 02:09:41 Re: Disabling and enabling constraints and triggers to make pg_restore work
Previous Message Tom Lane 2006-08-08 01:46:57 Re: FATAL Error