| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера