Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1G7C-0004vc-SC for pgsql-odbc@arkaria.postgresql.org; Wed, 17 Dec 2014 15:02:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y1G7C-0007a5-73 for pgsql-odbc@arkaria.postgresql.org; Wed, 17 Dec 2014 15:02:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y1G7B-0007Zy-BY for pgsql-odbc@postgresql.org; Wed, 17 Dec 2014 15:02:13 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Y1G73-0002Kw-0J for pgsql-odbc@postgresql.org; Wed, 17 Dec 2014 15:02:12 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id ADC1C28B50; Wed, 17 Dec 2014 07:02:00 -0800 (PST) Received: from EX13-CAS-012.vmware.com (EX13-CAS-012.vmware.com [10.113.191.64]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id A6E5241811; Wed, 17 Dec 2014 07:02:00 -0800 (PST) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-004.vmware.com (10.113.191.24) with Microsoft SMTP Server (TLS) id 15.0.913.22; Wed, 17 Dec 2014 07:02:00 -0800 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.913.22; Wed, 17 Dec 2014 07:01:59 -0800 Message-ID: <54919AD2.9000802@vmware.com> Date: Wed, 17 Dec 2014 17:01:38 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-Version: 1.0 To: Gaurav Srivastava CC: Subject: Re: High CPU shoot during poll retry References: <548B569D.4040008@vmware.com> <5490477E.5000303@vmware.com> <54918945.3070309@vmware.com> In-Reply-To: Content-Type: text/plain; charset="utf-8"; 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: -6.9 (------) 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 12/17/2014 04:01 PM, Gaurav Srivastava wrote: > Hi Heikki, > > Sincere thanks for your quick responses. > > Can we have similar functionality added in psqlODBC as in unmodified code > when nowait==False it waits for "infinite duration" ,Instead If we have a > configured timed wait,anybody can configure it as per their requirement. Yeah, that would be nice. The ODBC standard way to do it is to set the SQL_ATTR_QUERY_TIMEOUT attribute with SQLSetStmtAttr. It's not supported by the psqlodbc driver, however. It probably would be quite difficult to implement, but patches are welcome.. You could also do "set statement_timeout=2" to set a timeout in the server, but that wouldn't help with network problems. - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc