pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: valgog <valgog@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #5465: dblink TCP connection hangs blocking translation from being terminated
Date: Fri, 21 May 2010 00:45:37 -0700 (PDT)
Message-ID: <96a41caa-20c3-455d-a557-680fb9e3cdc5@v37g2000vbv.googlegroups.com> (raw)
References: <201005190910.o4J9AT3A063957@wwwmaster.postgresql.org>
	<AANLkTindNKOoALvWo362Dn0FOPDRN7vfzUiLmYnQjAbC@mail.gmail.com>
	<4BF430E5.1040503@joeconway.com>

On May 19, 8:41 pm, m...@joeconway.com (Joseph Conway) wrote:
> Magnus Hagander wrote:
> > On Wed, May 19, 2010 at 5:10 AM, Valentine Gogichashvili
> > <val...@gmail.com> wrote:
> >> The following bug has been logged online:
>
> >> Bug reference:      5465
> >> Logged by:          Valentine Gogichashvili
> >> Email address:      val...@gmail.com
> >> PostgreSQL version: 8.2.1
> >> Operating system:   Red Hat 3.4.6-3 (kernel 2.6.9-42.0.3.ELsmp)
> >> Description:        dblink TCP connection hangs blocking translation from
> >> being terminated
> >> Details:
>
> >> Hi all,
>
> >> we have an issue on our productive server. A stored procedure, that uses
> >> dblink to get some data from the remote database hangs not responding to
> >> kill signal and holds several locks on some tables as well as an advisory
> >> lock. So I have this transaction to be completed in order to have a
> >> possibility to operate the database normally.
>
> > 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...
>
> I thought the known issue was only on Windows though...
> Note that this is not dblink specific but rather libpq.
>
> >> How would it be possible to shutdown the DB in case this session process is
> >> not responding to normal kill signals? Will it hinder the database from
> >> shutting down normally? My previous experience with issuing immediate stops
> >> or killing with -9 had been quite catastrophic and I could not start the DB
> >> afterwards. What would you suggest in this case?
>
> > kill -9 on a client will make the postmaster restart the whole
> > process, so yes, it's a very heavy operation.
>
> Can you grab the process with gdb and call elog() manually?
>
> Joe
>
> --
> Sent via pgsql-bugs mailing list (pgsql-b...@postgresql.org)
> To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-bugs

Unfortunately I could not install gdb on that machine :-( some
dependencies are not installable and I cannot upgrade that production
machine...

-- Valentine



view thread (8+ messages)  latest in thread

Message-ID: <96a41caa-20c3-455d-a557-680fb9e3cdc5@v37g2000vbv.googlegroups.com>
Permalink:  ../96a41caa-20c3-455d-a557-680fb9e3cdc5@v37g2000vbv.googlegroups.com/
Also on:    postgresql.org/message-id/96a41caa-20c3-455d-a557-680fb9e3cdc5@v37g2000vbv.googlegroups.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-bugs@postgresql.org
  Cc: valgog@gmail.com
  Subject: Re: BUG #5465: dblink TCP connection hangs blocking translation from being terminated
  In-Reply-To: <96a41caa-20c3-455d-a557-680fb9e3cdc5@v37g2000vbv.googlegroups.com>
  References: <201005190910.o4J9AT3A063957@wwwmaster.postgresql.org> <AANLkTindNKOoALvWo362Dn0FOPDRN7vfzUiLmYnQjAbC@mail.gmail.com> <4BF430E5.1040503@joeconway.com> <96a41caa-20c3-455d-a557-680fb9e3cdc5@v37g2000vbv.googlegroups.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