Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XXaCX-0008PB-7S for pgsql-odbc@arkaria.postgresql.org; Fri, 26 Sep 2014 18:25:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XXaCW-0005YV-FI for pgsql-odbc@arkaria.postgresql.org; Fri, 26 Sep 2014 18:25:04 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XXaCV-0005YO-H0 for pgsql-odbc@postgresql.org; Fri, 26 Sep 2014 18:25:03 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XXaCS-0002a3-85 for pgsql-odbc@postgresql.org; Fri, 26 Sep 2014 18:25:01 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 5143529CD6; Fri, 26 Sep 2014 11:24:58 -0700 (PDT) Received: from EX13-CAS-011.vmware.com (EX13-CAS-011.vmware.com [10.113.191.63]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 4AFA719566; Fri, 26 Sep 2014 11:24:58 -0700 (PDT) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-013.vmware.com (10.113.191.33) with Microsoft SMTP Server (TLS) id 15.0.775.38; Fri, 26 Sep 2014 11:24:58 -0700 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.775.38; Fri, 26 Sep 2014 11:24:57 -0700 Message-ID: <5425AF72.1010105@vmware.com> Date: Fri, 26 Sep 2014 21:24:50 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.0 MIME-Version: 1.0 To: Pavan , Subject: Re: Some sql query got stuck in poll. References: <1411641754892-5820447.post@n5.nabble.com> In-Reply-To: <1411641754892-5820447.post@n5.nabble.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -7.6 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 09/25/2014 01:42 PM, Pavan wrote: > Hi, > > I have application running in multi-threaded architecture and application > updates DB from data in cache periodically . But unfortunately we are > getting some query got stuck in poll for indefinite time. This behavior is > happened some time with application but not any particular scenario. We can > not reproduce it always it's random issue. We have design to restart > application if it got stuck for more than specified time period. > > I have attached some back trace for query processing as below: It looks like the driver is waiting for a reply from the server. In other words, it looks like the server is busy executing the query, and the client is waiting for it. How long did you wait? Did you check what's happening in the server when that happens? - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc