Re: problem/bug in drop tablespace? - Mailing list pgsql-hackers

From Michael Nolan
Subject Re: problem/bug in drop tablespace?
Date
Msg-id CAOzAquKdihRutmDBCsnRghPORGuaBe3prRUFBf2znG+oMhG=Vw@mail.gmail.com
Whole thread Raw
In response to Re: problem/bug in drop tablespace?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers


On Fri, May 11, 2012 at 10:03 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Well, the question to me is exactly how much good it will do to stop
deletion of the pg_tablespace entry, if the underlying files are gone.
I'm having a hard time getting excited about expending cycles on that.

There could be multiple reasons why the underlying files are not there, such as a filesystem that isn't currently mounted for some reason.

It seems prudent to throw an error on drop tablespace if there are references to that tablespace in the catalog, or perhaps require a 'force' clause to override any errors, but it probably isn't something most DBAs would run into very often.

Thanks for figuring it out, Tom.
--
MIke Nolan

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: problem/bug in drop tablespace?
Next
From: Peter Eisentraut
Date:
Subject: Re: PL/Python result set slicing broken in Python 3