From: Tom Lane <tgl@sss.pgh.pa.us>
To: Albrecht Dreß <albrecht.dress@arcor.de>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: FDW Foreign Table Access: strange LOG message
Date: Thu, 22 Mar 2018 18:55:12 -0400
Message-ID: <4004.1521759312@sss.pgh.pa.us> (raw)
In-Reply-To: <TOZ7CDTG.CKNCALXH.G2HBWRGB@QH4JFHO3.57A75GMV.CF3QRUD7>
References: <TOZ7CDTG.CKNCALXH.G2HBWRGB@QH4JFHO3.57A75GMV.CF3QRUD7>
Albrecht =?iso-8859-1?b?RHJl3w==?= <albrecht.dress@arcor.de> writes:
> No messages are printed whilst the session is open. However, when I quit the session by typing “\q” /after/ entering the command above, the LOG message appears. It does not appear when I query tables from my_db exclusively, though, i.e. when I do not access the Foreign Table.
It finally occurred to me what is a likely explanation for why you're
seeing these messages but I don't when I test postgres_fdw locally:
probably, you are encrypting connections to the foreign server with SSL.
I can reproduce "could not receive data from client: Connection reset by
peer" if I kill -9 a psql client when it's using SSL, but not otherwise.
Anyway, it's clearly not very nice that postgres_fdw makes no attempt
to do a graceful shutdown of its remote connection. I don't know that
this rises to the level of a bug, exactly, but if somebody wanted to
send in a patch it'd probably get accepted.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, albrecht.dress@arcor.de, adrian.klaver@aklaver.com
Subject: Re: FDW Foreign Table Access: strange LOG message
In-Reply-To: <4004.1521759312@sss.pgh.pa.us>
References: <TOZ7CDTG.CKNCALXH.G2HBWRGB@QH4JFHO3.57A75GMV.CF3QRUD7> <4004.1521759312@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox