Re: Refactoring postmaster's code to cleanup after child exit

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Refactoring postmaster's code to cleanup after child exit
Дата
Msg-id CA+TgmobO38XspYqjZ9Bx3T18x5c8C65Dm=gYu9hVzX5Ftnrq2g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Refactoring postmaster's code to cleanup after child exit  (Andres Freund <andres@anarazel.de>)
Ответы Re: Refactoring postmaster's code to cleanup after child exit
Список pgsql-hackers
On Tue, Sep 10, 2024 at 12:59 PM Andres Freund <andres@anarazel.de> wrote:
> I still think that we'd be better off to just return an error to the client in
> postmaster, rather than deal with this dead-end children mess. That was
> perhaps justified at some point, but now it seems to add way more complexity
> than it's worth. And it's absurdly expensive to fork to return an error. Way
> more expensive than just having postmaster send an error and close the socket.

The tricky case is the one where the client write() -- or SSL_write() -- blocks.

--
Robert Haas
EDB: http://www.enterprisedb.com



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