Re: "template1" being accessed by other users

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "template1" being accessed by other users
Дата
Msg-id 21287.1184870493@sss.pgh.pa.us
обсуждение исходный текст
Ответ на "template1" being accessed by other users  ("Michael P. Soulier" <michael_soulier@mitel.com>)
Ответы Re: "template1" being accessed by other users  ("Michael P. Soulier" <michael_soulier@mitel.com>)
Список pgsql-general
"Michael P. Soulier" <michael_soulier@mitel.com> writes:
> I have an issue where a post-install script tries to create a database,
> and in 1 out of 10 cases I get this:
> "createdb: database creation failed: ERROR:  source database "template1"
> is being accessed by other users"

Try inserting a short sleep before the createdb.

> Can createdb block until template1 is available?

For 8.3 we have
http://archives.postgresql.org/pgsql-committers/2007-06/msg00013.php

            regards, tom lane

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

Предыдущее
От: "Michael P. Soulier"
Дата:
Сообщение: "template1" being accessed by other users
Следующее
От: "Michael P. Soulier"
Дата:
Сообщение: Re: "template1" being accessed by other users