Re: Minor DROP TABLESPACE issue

Поиск
Список
Период
Сортировка
От Gaetano Mendola
Тема Re: Minor DROP TABLESPACE issue
Дата
Msg-id 40D4B84F.8040406@bigfoot.com
обсуждение исходный текст
Ответ на Minor DROP TABLESPACE issue  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Minor DROP TABLESPACE issue  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: Cannot initdb in cvs tip
Следующее
От: "Dave Page"
Дата:
Сообщение: Compile failure with SSL