Re: Minor DROP TABLESPACE issue

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Minor DROP TABLESPACE issue
Date: 2004-06-19 22:03:59
Message-ID: 40D4B84F.8040406@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2004-06-19 22:04:38 Re: Cannot initdb in cvs tip
Previous Message Tom Lane 2004-06-19 22:01:25 Re: Compiling libpq with VisualC