Re: log spam with postgres_fdw

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: log spam with postgres_fdw
Дата
Msg-id 16702.1568560470@sss.pgh.pa.us
обсуждение исходный текст
Ответ на log spam with postgres_fdw  (Jeff Janes <jeff.janes@gmail.com>)
Ответы Re: log spam with postgres_fdw  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-hackers
Jeff Janes <jeff.janes@gmail.com> writes:
> When closing the local session which had used postgres_fdw over an ssl
> connection, I get log spam on the foreign server saying:
> LOG:  could not receive data from client: Connection reset by peer
> It is easy to reproduce, but you must be using ssl to do so.
> On searching, I see that a lot of people have run into this issue, with
> considerable confusion, but as far as I can see it has never been diagnosed.

In
https://www.postgresql.org/message-id/flat/3DPLMQIC.YU6IFMLY.3PLOWL6W%40FQT5M7HS.IFBAANAE.A7GUPCPM

we'd concluded that the issue is probably that postgres_fdw has no
logic to shut down its external connections when the session closes.
It's not very clear why the SSL dependency, but we speculated that
adding an on_proc_exit callback to close the connection(s) would help.

I imagine dblink has a similar issue.

            regards, tom lane



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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: log spam with postgres_fdw
Следующее
От: Michael Loftis
Дата:
Сообщение: Re: Primary keepalive message not appearing in Logical Streaming Replication