psql sets up cancel handler very early

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема psql sets up cancel handler very early
Дата
Msg-id 519259C8.6060401@gmx.net
обсуждение исходный текст
Ответы Re: psql sets up cancel handler very early
Re: psql sets up cancel handler very early
Список pgsql-hackers
Sometimes, the psql startup hangs when it cannot resolve or connect to a
host.  Intuitively, I would like to press Ctrl+C and correct the
connection string or investigate.  But that doesn't work because Ctrl+C
is already bound to the query cancel handler by that time.

It seems to me that there is no point in setting up the cancel handler
before the database connection is established.  Example patch attached.
 Comments?

Вложения

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: streaming replication, "frozen snapshot backup on it" and missing relfile (postgres 9.2.3 on xfs + LVM)
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: commit fest schedule for 9.4