Re: Ye olde drop-the-database-you-just-left problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Ye olde drop-the-database-you-just-left problem
Дата
Msg-id 6181.1180548104@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Ye olde drop-the-database-you-just-left problem  (Brian Hurt <bhurt@janestcapital.com>)
Ответы Re: Ye olde drop-the-database-you-just-left problem  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-hackers
Brian Hurt <bhurt@janestcapital.com> writes:
> Tom Lane wrote:
>> I just finished giving someone the standard advice to wait a bit before
>> trying to drop a database that'd just been accessed:
>> http://archives.postgresql.org/pgsql-general/2007-05/msg01505.php

> Is this a synchronization issue?

The problem is that the user thinks his previous disconnect is finished
when it may not be --- it's entirely possible in fact that his old
backend hasn't even received the disconnect message yet.  So I don't
think it's possible to rely on there being a state change inside the
database indicating that the other guy is about to exit.

Even if we had a semaphore of the sort you suggest, I doubt people would
want DROP DATABASE to wait indefinitely.  The real question here is how
long is it reasonable for DROP DATABASE to wait before failing ...
        regards, tom lane


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: TOAST usage setting
Следующее
От: Zoltan Boszormenyi
Дата:
Сообщение: New cast between inet/cidr and bytea