Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQkIH-0000Eh-DN for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Apr 2013 20:09:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UQkIG-0004MQ-Nq for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Apr 2013 20:09:56 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQkIG-0004ML-3n for pgsql-bugs@postgresql.org; Fri, 12 Apr 2013 20:09:56 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQkIC-0000py-Mz for pgsql-bugs@postgresql.org; Fri, 12 Apr 2013 20:09:54 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 4976D28499; Fri, 12 Apr 2013 13:09:52 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 46BDFB04F5; Fri, 12 Apr 2013 13:09:52 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id 11A00C0073; Fri, 12 Apr 2013 13:09:49 -0700 (PDT) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-2.vmware.com Received: from zcs-prod-ext-mta-2.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-2.vmware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eRgW7htGzWkc; Fri, 12 Apr 2013 13:09:48 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id E0F3DC004A; Fri, 12 Apr 2013 13:09:48 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Fri, 12 Apr 2013 13:09:48 -0700 (PDT) Message-ID: <51686A0D.2020305@vmware.com> Date: Fri, 12 Apr 2013 23:09:49 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: "Singh, Devendra" CC: "pgsql-bugs@postgresql.org" Subject: Re: postgres 8.4 PQexec hang on HP-UX References: <0B1855DC8342A9419D42AC865764B8B19B46CA53@G4W3232.americas.hpqcorp.net> In-Reply-To: <0B1855DC8342A9419D42AC865764B8B19B46CA53@G4W3232.americas.hpqcorp.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -9.3 (---------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 12.04.2013 09:41, Singh, Devendra wrote: > Hi All, > > I hit a hang issue in postgres 8.4 query. Hit this issue multiple time on HP-UX. Below is the snapshot of the hang thread. > > -------------------------------- lwpid : 600943 ------------------------------- > 0: c00000000054ced0 : _poll_sys() + 0x30 (/usr/lib/hpux64/libc.so.1) > 1: c000000000561560 : poll() + 0xe0 (/usr/lib/hpux64/libc.so.1) > 2: c000000001f798e0 : pqSocketPoll() at fe-misc.c:1079 > 3: c000000001f790e0 : pqWait() at fe-misc.c:1024 > 4: c000000001f6ebb0 : PQgetResult() at fe-exec.c:1554 > 5: c000000001f6f0a0 : PQexec() at fe-exec.c:1735 > > Is it a known issue? Any possible workaround ? The first thing that comes to mind is that the query is simply taking a long time to execute, or is being blocked trying to acquire a lock that another process is holding in the server. You'll have to provide a lot more details if you want anyone to make a better guess than that. A simplified test program that reproduces the problem would be best. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs