Re: [PATCH] Prevent hanging on unreachable hosts on startup

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Prevent hanging on unreachable hosts on startup
Дата
Msg-id 3741.1325731017@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [PATCH] Prevent hanging on unreachable hosts on startup  ("Ryan P. Kelly" <rpkelly22@gmail.com>)
Ответы Re: [PATCH] Prevent hanging on unreachable hosts on startup  (Ryan Kelly <rpkelly22@gmail.com>)
Список pgsql-bugs
"Ryan P. Kelly" <rpkelly22@gmail.com> writes:
> The signal handler installed by setup_cancel_handler() will ignore
> attempts to exit psql should a host be unreachable.

Hm.  That may be worth doing something about, but the proposed patch
seems more like a quick-and-dirty hack than a solution.  The main
thing I don't like about it is that if we care about this scenario
during initial startup, we should also care about it during a \c
command, but just delaying the installation of the signal handler
won't fix that case.

More generally, what if the server becomes unreachable mid-session?
I'm not sure how much there is to be done about that case, since
there's probably no good way to distinguish it from a query that
takes a really long time.  But if we're going to think about this,
we might as well think about all the cases.

            regards, tom lane

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

Предыдущее
От: dean.w.schulze@gmail.com
Дата:
Сообщение: BUG #6380: dropdb gives error while loading shared libraries: liblber-2.3.so.0
Следующее
От: Michael Beattie
Дата:
Сообщение: Re: BUG #6380: dropdb gives error while loading shared libraries: liblber-2.3.so.0