Droping a database even if someone is connected

Поиск
Список
Период
Сортировка
От Eric Audet
Тема Droping a database even if someone is connected
Дата
Msg-id 1FE49909B982214BBF40AE6C363430BD039462@mail03.scc.ca
обсуждение исходный текст
Ответы Re: Droping a database even if someone is connected  (Oliver Elphick <olly@lfix.co.uk>)
Список pgsql-general

Is there a way to drop a database even if someone is connected to it?

I use a perl script that
1) drop the database, (dropdb)
2) create a new database, (createdb)
3) restore a database from a dump (psql databasename <dumpfile)

When the drop does not work, everything else fails!

Thanks in advance
Eric

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

Предыдущее
От: Dousak "May (Phoebus Apollonus)"
Дата:
Сообщение: Re: Function in selection?
Следующее
От: Dousak "May (Phoebus Apollonus)"
Дата:
Сообщение: Re: Function in selection?