Re: dropdb: database removal failed: ERROR: database "database_name" is being accessed by other users

Поиск
Список
Период
Сортировка
От Gourish Singbal
Тема Re: dropdb: database removal failed: ERROR: database "database_name" is being accessed by other users
Дата
Msg-id 674d1f8a050222214138bc53b9@mail.gmail.com
обсуждение исходный текст
Ответ на dropdb: database removal failed: ERROR: database "database_name" is being accessed by other users  (Gourish Singbal <gourish@gmail.com>)
Список pgsql-admin
Guys,

postgres :  7.4.5
Os: linux

I need to restore my back up database with production data.
the steps i follow on backup database are:-
1) dropdb
2) createdb
3) psql or pg_restore to import data into the backup database.

Am i doing the correct steps?.

Problems:-
If some clients are connected to the backup database during the 1st
Step (dropdb)
the postmaster throws an error saying clients connected cannot drop database.

Any solution to the above problem would be great...

regards
gourish


On Mon, 21 Feb 2005 19:51:10 +0530, Gourish Singbal <gourish@gmail.com> wrote:
> This Error message was given when i was dropping the database.
> There are idle connections to the database as seen from ps -ef | grep postgres
>
> How can i drop the database with out restarting the postgres server.?.
>
> FYI: i am dropping the database to perform restoration of this backup
> database using psql  from production.
>
> --
> Best,
> Gourish Singbal
>


--
Best,
Gourish Singbal

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

Предыдущее
От: "Aufkleber24.de"
Дата:
Сообщение: Re: Upgrading 7.3 -> 7.4.5
Следующее
От: "Sander Steffann"
Дата:
Сообщение: Re: 64 bit rpms for 7.4.7??