pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Voinea <rvoinea@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5465: dblink TCP connection hangs blocking translation from being terminated
Date: Fri, 14 Mar 2014 10:30:11 +0200
Message-ID: <10183969.312fJvI1H2@shu> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi

In our setup, we make use extensively of dblink.
Due to the fact that some queries take some time to complete and that the link 
is over the internet, sometime the server process (the transaction that runs 
the dblink queries) hangs when the link goes down, keeping locks on several 
records plus some advisory locks and thus freezing the whole (most of) the 
database.

What I have found is this bug, that is remarkably similar (if not identical) 
with what we are experiencing.

http://postgresql.1045698.n5.nabble.com/BUG-5465-dblink-TCP-connection-hangs-blocking-translation-fr...

The bug dates from may 2010 and no update since.

One of the comments states that there is work done for version 9.0 ...but I  
haven't seen anything in the changelog related to this in any version starting 
with the one we are using (9.1.12).

<quote>
I believe this is a known issue in dblink, where it's not possible to 
cancel it when it's waiting in the TCP layer in the kernel. 
Unfortunately, there is no fix ATM - there was some work towards it 
for 9.0 at one point, but I think this is actually the first real 
bug-report on the issue... 
</quote>

Has there been any progress in this direction?

Thank you!

-- 
Robert Voinea
Software Engineer
+4 0740 467 262

Don't take life too seriously. You'll never get out of it alive.
(Elbert Hubbard)




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (8+ messages)  latest in thread

Message-ID: <10183969.312fJvI1H2@shu>
Permalink:  ../10183969.312fJvI1H2@shu/
Also on:    postgresql.org/message-id/10183969.312fJvI1H2@shu

 · 

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: rvoinea@gmail.com
  Subject: Re: BUG #5465: dblink TCP connection hangs blocking translation from being terminated
  In-Reply-To: <10183969.312fJvI1H2@shu>
  References: <10183969.312fJvI1H2@shu>

* 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