pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: Zhihong Yu <zyu@yugabyte.com>
Cc: Alexey Kondratov <a.kondratov@postgrespro.ru>
Cc: Hou, Zhijie <houzj.fnst@cn.fujitsu.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: [PATCH] postgres_fdw connection caching - cause remote sessions linger till the local session exit
Date: Fri, 2 Apr 2021 02:22:08 +0900
Message-ID: <aaf2c8c2-c65d-fed1-5597-0ff4c363148e@oss.nttdata.com> (raw)
In-Reply-To: <CALj2ACW0s3d1rsbWAde+if-7Jc_bB+R9rRzTkK_6MdqsmnAQzg@mail.gmail.com>
References: <CALj2ACVvrp5=AVp2PupEm+nAC8S4buqR3fJMmaCoc7ftT0aD2A@mail.gmail.com>
	<CALj2ACXGwV=qTzZ+ELo+tKR9pUb52r+CFVah4hpBwGViGPMOig@mail.gmail.com>
	<CALj2ACVr+vo+D46uLEATX5fVFPCQRiuKRydxnSy7E6ZwUzBT=w@mail.gmail.com>
	<39259f30-897c-ceaf-8a1e-78fe2db398cb@oss.nttdata.com>
	<CALj2ACUwqO74-amff63Lr1VU1F7WrWEK_28+iT_Ubf8htjZzLg@mail.gmail.com>
	<CALj2ACUpiKR9QVOLOhpmEPjh4vCtA0_xMEBgZd2-HRSB1wdH=w@mail.gmail.com>
	<8ef4979b-85e7-c3f2-0653-f8f444f5dcff@oss.nttdata.com>
	<CALj2ACW0vxkR-yU0+S-0yzGN0kZzA0_HVnsP5fgZVAANajwocQ@mail.gmail.com>
	<93e8fe47-79c2-ed58-c43b-fdb57b238fa8@oss.nttdata.com>
	<CALj2ACWOzwJLqJcPQPx_Q=YSg-9PBV6uwHq3bac-hOjOKnuDDA@mail.gmail.com>
	<c68a0001-8aa0-9794-6322-25f28472e60a@oss.nttdata.com>
	<CALj2ACUUiqqu3uXmpL_YdSYU6-H9Usv9XjOhMKYd3BCkC9QPAg@mail.gmail.com>
	<CALj2ACVaE52Fwv4ArMgQWPkOVeVx3C7bmG-sqL_UOu=OOM8p4Q@mail.gmail.com>
	<ec0be852-240f-3a28-0884-24f03fee5e54@oss.nttdata.com>
	<CALj2ACW0s3d1rsbWAde+if-7Jc_bB+R9rRzTkK_6MdqsmnAQzg@mail.gmail.com>



On 2021/04/02 1:13, Bharath Rupireddy wrote:
> On Thu, Apr 1, 2021 at 8:56 PM Fujii Masao <masao.fujii@oss.nttdata.com> wrote:
>>
>>> Attaching v21 patch set, rebased onto the latest master.
>>
>> I agree to add the server-level option. But I'm still not sure if it's good idea to also expose that option as GUC. Isn't the server-level option enough for most cases?
>>
>> Also it's strange to expose only this option as GUC while there are other many postgres_fdw options?
>>
>> With v21-002 patch, even when keep_connections GUC is disabled, the existing open connections are not close immediately. Only connections used in the transaction are closed at the end of that transaction. That is, the existing connections that no transactions use will never be closed. I'm not sure if this behavior is intuitive for users.
>>
>> Therefore for now I'm thinking to support the server-level option at first... Then if we find it's not enough for most cases in practice, I'd like to consider to expose postgres_fdw options including keep_connections as GUC.
>>
>> Thought?
> 
> +1 to have only a server-level option for now and if the need arises
> we could expose it as a GUC.
> 
>> BTW these patches fail to be applied to the master because of commit 27e1f14563. I updated and simplified the 003 patch. Patch attached.
> 
> Thanks for updating the patch. It looks good to me. Just a minor
> change, instead of using "true" and "off" for the option, I used "on"
> and "off" in the docs. Attaching v23.

Thanks a lot! Barring any objection, I will commit this version.

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION





view thread (175+ messages)  latest in thread

Message-ID: <aaf2c8c2-c65d-fed1-5597-0ff4c363148e@oss.nttdata.com>
Permalink:  ../aaf2c8c2-c65d-fed1-5597-0ff4c363148e@oss.nttdata.com/
Also on:    postgresql.org/message-id/aaf2c8c2-c65d-fed1-5597-0ff4c363148e@oss.nttdata.com

 · 

reply

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-hackers@postgresql.org
  Cc: masao.fujii@oss.nttdata.com, bharath.rupireddyforpostgres@gmail.com, zyu@yugabyte.com, a.kondratov@postgrespro.ru, houzj.fnst@cn.fujitsu.com
  Subject: Re: [PATCH] postgres_fdw connection caching - cause remote sessions linger till the local session exit
  In-Reply-To: <aaf2c8c2-c65d-fed1-5597-0ff4c363148e@oss.nttdata.com>
  References: <CALj2ACVvrp5=AVp2PupEm+nAC8S4buqR3fJMmaCoc7ftT0aD2A@mail.gmail.com> <CALj2ACVr+vo+D46uLEATX5fVFPCQRiuKRydxnSy7E6ZwUzBT=w@mail.gmail.com> <39259f30-897c-ceaf-8a1e-78fe2db398cb@oss.nttdata.com> <CALj2ACUwqO74-amff63Lr1VU1F7WrWEK_28+iT_Ubf8htjZzLg@mail.gmail.com> <CALj2ACUpiKR9QVOLOhpmEPjh4vCtA0_xMEBgZd2-HRSB1wdH=w@mail.gmail.com> <8ef4979b-85e7-c3f2-0653-f8f444f5dcff@oss.nttdata.com> <CALj2ACW0vxkR-yU0+S-0yzGN0kZzA0_HVnsP5fgZVAANajwocQ@mail.gmail.com> <93e8fe47-79c2-ed58-c43b-fdb57b238fa8@oss.nttdata.com> <CALj2ACWOzwJLqJcPQPx_Q=YSg-9PBV6uwHq3bac-hOjOKnuDDA@mail.gmail.com> <c68a0001-8aa0-9794-6322-25f28472e60a@oss.nttdata.com> <CALj2ACUUiqqu3uXmpL_YdSYU6-H9Usv9XjOhMKYd3BCkC9QPAg@mail.gmail.com> <CALj2ACVaE52Fwv4ArMgQWPkOVeVx3C7bmG-sqL_UOu=OOM8p4Q@mail.gmail.com> <ec0be852-240f-3a28-0884-24f03fee5e54@oss.nttdata.com> <CALj2ACW0s3d1rsbWAde+if-7Jc_bB+R9rRzTkK_6MdqsmnAQzg@mail.gmail.com> <aaf2c8c2-c65d-fed1-5597-0ff4c363148e@oss.nttdata.com>

* 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