Re: createdb problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: createdb problem
Дата
Msg-id 11050.1066153113@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: createdb problem  (Gary Stainburn <gary.stainburn@ringways.co.uk>)
Список pgsql-admin
Gary Stainburn <gary.stainburn@ringways.co.uk> writes:
> Am I right in thinking that dropdb actually connects using the template1
> database to enable it to work, and that the connection is not closing quick
> enough when dropdb finishes, thus causing the problem?

Yes.  I'd suggest issuing the DROP and CREATE commands in the same psql
session, instead of relying on dropdb's backend to terminate before
createdb's has run.  Because the backends are background processes in
the eyes of the kernel, they can easily not get scheduled when there is
anything else to do.

            regards, tom lane

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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Security Problem
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: Lock!