Re: CREATE DATABASE fails when template1 being accessed ...

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: CREATE DATABASE fails when template1 being accessed ...
Дата
Msg-id 20050531185426.GA13127@wolff.to
обсуждение исходный текст
Ответ на CREATE DATABASE fails when template1 being accessed ...  ("Marc G. Fournier" <scrappy@postgresql.org>)
Список pgsql-hackers
On Tue, May 31, 2005 at 14:53:41 -0300, "Marc G. Fournier" <scrappy@postgresql.org> wrote:
> 
> 
> ERROR:  source database "template1" is being accessed by other users
> 
> Why is this not allowed?  Not that there is generally a reason to be in 
> template1, but am curious as to why it prevents a new DB from being 
> created if someone is connected to it ...

Because if someone changes something in the database while it is being
copied, the newly created database will probably be messed up.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: CREATE DATABASE fails when template1 being accessed ...
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: CREATE DATABASE fails when template1 being accessed ...