From: Tom Lane <tgl@sss.pgh.pa.us>
To: MOHAN KUMAR DORAIRAJ <mohankumar.dorairaj@globalfoundries.com>
Cc: Mahendra Singh <mahi6run@gmail.com>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16145: Not able to terminate active session
Date: Wed, 04 Dec 2019 08:10:12 -0500
Message-ID: <13041.1575465012@sss.pgh.pa.us> (raw)
In-Reply-To: <CANnY_AOYf9bV2q0Z=R_0=CqWdUNw1Y3HT=RDQqgUO1dZ2D8wpQ@mail.gmail.com>
References: <16145-d617c77db801047b@postgresql.org>
<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>
MOHAN KUMAR DORAIRAJ <mohankumar.dorairaj@globalfoundries.com> writes:
> (gdb) bt
> #0 0x00007f5503e826e0 in __read_nocancel () from /lib64/libpthread.so.0
> #1 0x00007f54eb392490 in snttread () from
> /db/oraclnt/12.2.0/lib/libclntsh.so.12.1
> #2 0x00007f54eb391420 in nttfprd () from
> /db/oraclnt/12.2.0/lib/libclntsh.so.12.1
> #3 0x00007f54eb387be0 in nsbasic_brc () from
> /db/oraclnt/12.2.0/lib/libclntsh.so.12.1
> #4 0x00007f54eb37e654 in nioqrc () from
> /db/oraclnt/12.2.0/lib/libclntsh.so.12.1
> #5 0x00007f54eb3987f9 in ttcdrv () from
> /db/oraclnt/12.2.0/lib/libclntsh.so.12.1
> #6 0x00007f54eb382809 in nioqwa () from
> /db/oraclnt/12.2.0/lib/libclntsh.so.12.1
> #7 0x00007f54eb36ce90 in upirtrc () from
> /db/oraclnt/12.2.0/lib/libclntsh.so.12.1
> #8 0x00007f54eb378f86 in kpurcsc () from
> /db/oraclnt/12.2.0/lib/libclntsh.so.12.1
> #9 0x00007f54eb3710c9 in kpuexec () from
> /db/oraclnt/12.2.0/lib/libclntsh.so.12.1
> #10 0x00007f54eb36c639 in OCIStmtExecute () from
> /db/oraclnt/12.2.0/lib/libclntsh.so.12.1
> #11 0x00007f54ec10eb32 in oracleExecuteQuery (session=0x1a16838,
> oraTable=0x1a0e558, paramList=<optimized out>) at oracle_utils.c:1964
> #12 0x00007f54ec105940 in oracleIterateForeignScan (node=<optimized out>)
> at oracle_fdw.c:1432
> #13 0x000000000062e58b in ForeignNext ()
> ...
OK, so that's pretty much what we were afraid of: it's stuck in some
I/O in the Oracle FDW, which means that said I/O code isn't aware of
the conventions for query termination in Postgres. There isn't
anything that PG as a whole can do about this. Perhaps talking
to the Oracle FDW authors would yield something useful --- but they
may not be able to fix it either, because it looks like this is way
way down inside an Oracle-supplied library.
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, mohankumar.dorairaj@globalfoundries.com, mahi6run@gmail.com, tomas.vondra@2ndquadrant.com
Subject: Re: BUG #16145: Not able to terminate active session
In-Reply-To: <13041.1575465012@sss.pgh.pa.us>
References: <16145-d617c77db801047b@postgresql.org> <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>
* 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