Re: postmaster dies on EOF?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: postmaster dies on EOF?
Дата
Msg-id 4878.971883345@sss.pgh.pa.us
обсуждение исходный текст
Ответ на postmaster dies on EOF?  ("Denis A. Doroshenko" <d.doroshenko@omnitel.net>)
Список pgsql-bugs
"Denis A. Doroshenko" <d.doroshenko@omnitel.net> writes:
> one day i decided to switch password authetntication in pg_hba.conf
> for local tcp/unix connection as well, ran psql and saw 'Password:' for
> the first time :-) But, when i pressed ^D in answer it showed many
> lines with 'Password:' at the begining and then postmaster died.

This is a previously reported bug in psql.  It gets into a loop wherein
it keeps opening new connections to the postmaster and then leaving them
hanging at the postmaster's demand for password.  That part is fixed in
current sources; also the postmaster doesn't elog(FATAL) on running out
of open file slots anymore.

But there's still a potential for denial of service by a broken client,
because the postmaster will just sit there waiting for password
responses on all these open connections, and there'll be no way for
other clients to get in.  There's been some talk of instituting a
timeout on the connection request protocol to fix that, but nothing's
been done about it yet AFAIK.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: The Data Base System is in recovery mode
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: OID in WHERE clause of SELECT results in error