Re: Minor DROP TABLESPACE issue - Mailing list pgsql-hackers

From Gaetano Mendola
Subject Re: Minor DROP TABLESPACE issue
Date
Msg-id 40D4B84F.8040406@bigfoot.com
Whole thread Raw
In response to Minor DROP TABLESPACE issue  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Minor DROP TABLESPACE issue
List pgsql-hackers
Tom Lane wrote:
> Although DROP TABLESPACE can detect tables existing in the target
> tablespace, it doesn't have any way to detect schemas that reference
> that tablespace as their default tablespace.  Thus you can get
> implementation-level failures like this one:
> 
> $ mkdir /tmp/junk
> 
> regression=# create tablespace junk location '/tmp/junk';
> CREATE TABLESPACE
> regression=# create schema junk tablespace junk;
> CREATE SCHEMA
> regression=# drop tablespace junk;
> DROP TABLESPACE

Why this doesn't fail? The junk schema depend on tablespace junk,
is there no dependencies between these two objects.


G.



pgsql-hackers by date:

Previous
From: "Dave Page"
Date:
Subject: Re: Cannot initdb in cvs tip
Next
From: "Dave Page"
Date:
Subject: Compile failure with SSL