Re: Drop database / database in use question

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Drop database / database in use question
Дата
Msg-id dcc563d10810170730t54cbae2ej45b10a21e9e683a2@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Drop database / database in use question  ("Dan Armbrust" <daniel.armbrust.list@gmail.com>)
Список pgsql-general
On Fri, Oct 17, 2008 at 8:28 AM, Dan Armbrust
<daniel.armbrust.list@gmail.com> wrote:
> But there is no user2.  I _know_ I am the only user of this database.
>
> So how can User 1 create a race condition by himself?
>
> Or is this something PostgreSQL is doing internally (like vacuum) ?
>
> Do I really just have to keep trying the DROP command N times in a
> row, until it decides it wants to work?  That really doesn't seem
> right.

Could be autovac.  Easiest way is to use psql -c to get a list of pids
that are connected and kill the backends (just kill, not kill -9) then
try to drop it again.  loop through that every few seconds and it
should work.

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

Предыдущее
От: Luca Ferrari
Дата:
Сообщение: Re: OR or IN ?
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: OR or IN ?