pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: MOHAN KUMAR DORAIRAJ <mohankumar.dorairaj@globalfoundries.com>
Cc: Mahendra Singh <mahi6run@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16145: Not able to terminate active session
Date: Wed, 4 Dec 2019 14:55:36 +0100
Message-ID: <20191204135536.3drofgso4sut5enj@development> (raw)
In-Reply-To: <14093.1575466474@sss.pgh.pa.us>
References: <20191203141147.lofq3gwn3u3vkkze@development>
	<CANnY_AM9QqhgX1vJB71kag5qvaTgSL7n3pdf=t70dzkGMHvnVw@mail.gmail.com>
	<20191203155458.jaauye67db32omk4@development>
	<CANnY_AP-CpeaZ0BtEBAugFPu-FbNnjNAhRE1bRrkBxodvRY3+w@mail.gmail.com>
	<20191203163818.vi4ocgg7mfo53fbz@development>
	<CAKYtNArb5srWO_LW5CxonY6rH1tP4a_Raqfeb+g6ANzttqrn6w@mail.gmail.com>
	<CANnY_AOYf9bV2q0Z=R_0=CqWdUNw1Y3HT=RDQqgUO1dZ2D8wpQ@mail.gmail.com>
	<13041.1575465012@sss.pgh.pa.us>
	<CANnY_AMaJpCRyAVf3YkXQxkkPjou=2JXMY4b4tm+7ocnTMPZ0Q@mail.gmail.com>
	<14093.1575466474@sss.pgh.pa.us>

On Wed, Dec 04, 2019 at 08:34:34AM -0500, Tom Lane wrote:
>MOHAN KUMAR DORAIRAJ <mohankumar.dorairaj@globalfoundries.com> writes:
>> Is there any other alternative option available.?
>
>Well, why is it that your session is sitting waiting for input from
>the Oracle server?  That doesn't seem like a condition that ought
>to be persistent, most of the time.  Perhaps redesigning your
>queries against that foreign server would help.
>

Yeah, having some CHECK_FOR_INTERRUPT calls in the code might help
(there's a single place with this macro, but it only happens after an
error). The question is whether the OCIStmtExecute actually returns from
time to time, of it if gets stuck.

>Also, I do recommend asking the Oracle FDW authors about this.
>It's possible that adding some CHECK_FOR_INTERRUPT calls in that
>FDW would ameliorate things.  (I don't know where to file issues
>about oracle_fdw, but it's not this list.)
>

I think the right place to file the issue is here:

   https://github.com/laurenz/oracle_fdw

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (15+ messages)  latest in thread

Message-ID: <20191204135536.3drofgso4sut5enj@development>
Permalink:  ../20191204135536.3drofgso4sut5enj@development/
Also on:    postgresql.org/message-id/20191204135536.3drofgso4sut5enj@development

 · 

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-bugs@postgresql.org
  Cc: tomas.vondra@2ndquadrant.com, tgl@sss.pgh.pa.us, mohankumar.dorairaj@globalfoundries.com, mahi6run@gmail.com
  Subject: Re: BUG #16145: Not able to terminate active session
  In-Reply-To: <20191204135536.3drofgso4sut5enj@development>
  References: <20191203141147.lofq3gwn3u3vkkze@development> <CANnY_AM9QqhgX1vJB71kag5qvaTgSL7n3pdf=t70dzkGMHvnVw@mail.gmail.com> <20191203155458.jaauye67db32omk4@development> <CANnY_AP-CpeaZ0BtEBAugFPu-FbNnjNAhRE1bRrkBxodvRY3+w@mail.gmail.com> <20191203163818.vi4ocgg7mfo53fbz@development> <CAKYtNArb5srWO_LW5CxonY6rH1tP4a_Raqfeb+g6ANzttqrn6w@mail.gmail.com> <CANnY_AOYf9bV2q0Z=R_0=CqWdUNw1Y3HT=RDQqgUO1dZ2D8wpQ@mail.gmail.com> <13041.1575465012@sss.pgh.pa.us> <CANnY_AMaJpCRyAVf3YkXQxkkPjou=2JXMY4b4tm+7ocnTMPZ0Q@mail.gmail.com> <14093.1575466474@sss.pgh.pa.us> <20191204135536.3drofgso4sut5enj@development>

* 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