From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Albrecht Dreß <albrecht.dress@arcor.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: FDW Foreign Table Access: strange LOG message
Date: Tue, 20 Mar 2018 15:38:56 -0400
Message-ID: <30297.1521574736@sss.pgh.pa.us> (raw)
In-Reply-To: <4a4ae274-4860-da54-cc31-09749beb6ed8@aklaver.com>
References: <3DPLMQIC.YU6IFMLY.3PLOWL6W@FQT5M7HS.IFBAANAE.A7GUPCPM>
<4a4ae274-4860-da54-cc31-09749beb6ed8@aklaver.com>
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 03/20/2018 11:52 AM, Albrecht Dreß wrote:
>> I use Postgres 10.3 on a Debian Stretch system with foreign tables, and
>> noticed strange LOG messages when accessing them.
>> [time stamp/pid] user@my_db LOG: could not receive data from client:
>> Connection reset by peer
> My suspicion is it has to do with this:
> postgres_fdw establishes a connection to a foreign server during the
> first query that uses a foreign table associated with the foreign
> server. This connection is kept and re-used for subsequent queries in
> the same session.
Perhaps. It's not entirely clear if these complaints are about the
original user session or the sub-session opened by postgres_fdw.
(Albrecht, if you're not sure either, enabling log_connections and
log_disconnections might make it clearer.)
I don't see any such log messages when testing postgres_fdw here,
which is odd; why are my results different?
If these are about the FDW connections, maybe the answer is that
postgres_fdw ought to establish a backend-exit callback in which
it can shut down its connections gracefully. If it's doing that
now, I sure don't see where.
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, adrian.klaver@aklaver.com, albrecht.dress@arcor.de
Subject: Re: FDW Foreign Table Access: strange LOG message
In-Reply-To: <30297.1521574736@sss.pgh.pa.us>
References: <3DPLMQIC.YU6IFMLY.3PLOWL6W@FQT5M7HS.IFBAANAE.A7GUPCPM> <4a4ae274-4860-da54-cc31-09749beb6ed8@aklaver.com> <30297.1521574736@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