From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 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: Fri, 23 Mar 2018 13:35:26 +0900
Message-ID: <20180323043334.GC1724@paquier.xyz> (raw)
In-Reply-To: <4004.1521759312@sss.pgh.pa.us>
References: <TOZ7CDTG.CKNCALXH.G2HBWRGB@QH4JFHO3.57A75GMV.CF3QRUD7>
<4004.1521759312@sss.pgh.pa.us>
On Thu, Mar 22, 2018 at 06:55:12PM -0400, Tom Lane wrote:
> 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.
I won't qualify that as a bug, this is mainly noise. Still I agree that
it would be cleaner to make more efforts in finishing the connections
when the session goes down. You would roughly just need to register an
on_shmem_exit callback which loops through all the connections to finish
them. Now would we want to slow down the session shutdown just for
that? I am less sure particularly if there is lag between the remote
and the local servers.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael@paquier.xyz, 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: <20180323043334.GC1724@paquier.xyz>
References: <TOZ7CDTG.CKNCALXH.G2HBWRGB@QH4JFHO3.57A75GMV.CF3QRUD7> <4004.1521759312@sss.pgh.pa.us> <20180323043334.GC1724@paquier.xyz>
* 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