Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 064376366E3 for ; Thu, 27 May 2010 16:29:51 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 42096-01-2 for ; Thu, 27 May 2010 19:29:42 +0000 (UTC) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id B77B66350E4 for ; Thu, 27 May 2010 16:29:19 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.3/8.14.3) with ESMTP id o4RJSlLI031458 for ; Thu, 27 May 2010 16:29:16 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.3/8.14.3/Submit) id o4L7jajI027553 for pgsql-bugs@postgresql.org; Fri, 21 May 2010 04:45:36 -0300 (ADT) (envelope-from news) From: valgog X-Newsgroups: pgsql.bugs Subject: Re: BUG #5465: dblink TCP connection hangs blocking translation from being terminated Date: Fri, 21 May 2010 00:45:37 -0700 (PDT) Organization: http://groups.google.com Lines: 63 Message-ID: <96a41caa-20c3-455d-a557-680fb9e3cdc5@v37g2000vbv.googlegroups.com> References: <201005190910.o4J9AT3A063957@wwwmaster.postgresql.org> <4BF430E5.1040503@joeconway.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Complaints-To: groups-abuse@google.com Complaints-To: groups-abuse@google.com Injection-Info: v37g2000vbv.googlegroups.com; posting-host=78.53.64.198; posting-account=zGCcogoAAAArwo4vzM49iZKKucd6_BKu User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/533.9 (KHTML, like Gecko) Chrome/6.0.401.1 Safari/533.9, gzip(gfe) To: pgsql-bugs@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.011 tagged_above=-5 required=5 tests=BAYES_20=-0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/245 X-Sequence-Number: 26907 On May 19, 8:41=A0pm, m...@joeconway.com (Joseph Conway) wrote: > Magnus Hagander wrote: > > On Wed, May 19, 2010 at 5:10 AM, Valentine Gogichashvili > > wrote: > >> The following bug has been logged online: > > >> Bug reference: =A0 =A0 =A05465 > >> Logged by: =A0 =A0 =A0 =A0 =A0Valentine Gogichashvili > >> Email address: =A0 =A0 =A0val...@gmail.com > >> PostgreSQL version: 8.2.1 > >> Operating system: =A0 Red Hat 3.4.6-3 (kernel 2.6.9-42.0.3.ELsmp) > >> Description: =A0 =A0 =A0 =A0dblink TCP connection hangs blocking trans= lation from > >> being terminated > >> Details: > > >> Hi all, > > >> we have an issue on our productive server. A stored procedure, that us= es > >> 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 advis= ory > >> 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 proce= ss is > >> not responding to normal kill signals? Will it hinder the database fro= m > >> shutting down normally? My previous experience with issuing immediate = stops > >> or killing with -9 had been quite catastrophic and I could not start t= he 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/p= gsql-bugs Unfortunately I could not install gdb on that machine :-( some dependencies are not installable and I cannot upgrade that production machine... -- Valentine