Re: V7.4.2: drop database does not drop schemas/table/data

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: V7.4.2: drop database does not drop schemas/table/data
Дата
Msg-id 12423.1084304217@sss.pgh.pa.us
обсуждение исходный текст
Ответ на V7.4.2: drop database does not drop schemas/table/data  (Rachel Willmer <rachel@willmer.com>)
Ответы Re: V7.4.2: drop database does not drop schemas/table/data  (Rachel Willmer <rachel@willmer.com>)
Список pgsql-bugs
Rachel Willmer <rachel@willmer.com> writes:
> DROP DATABASE testdb;
> CREATE DATABASE testdb;

> Database appears again. But so does the schema 'edinburgh', all its
> tables, views, data, etc.

Sounds like you created all that stuff in template1, and so it's being
copied into the new database.  Read about template databases:
http://www.postgresql.org/docs/7.4/static/manage-ag-templatedbs.html

If you decide you want to rebuild template1 without re-initdb'ing,
there's a recipe somewhere on the techdocs site --- it's not quite
a trivial thing to do.

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1150: grant options not properly checked
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug in backend/lib/stringinfo.c:enlargeStringInfo()