pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Gaurav Srivastava <gaurav.srivastava@globallogic.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: High CPU shoot during poll retry
Date: Wed, 17 Dec 2014 17:01:38 +0200
Message-ID: <54919AD2.9000802@vmware.com> (raw)
In-Reply-To: <CAAXqS3BMGeypjdKs5tO-17hvJd8CaetYVFsQHZX_Djmj94nVuQ@mail.gmail.com>
References: <CAAXqS3Aag2vVu9yKQvb-jdSPuTkNSi_X6HphQcz4adgXL1gOFQ@mail.gmail.com>
	<548B569D.4040008@vmware.com>
	<CAAXqS3BFjOe8MBwprVqLwTH4BFvU55v6fGjd77XTZdj19raDuQ@mail.gmail.com>
	<5490477E.5000303@vmware.com>
	<CAAXqS3CorzgfdWmNWsbvcjjXZ37F5O443S78M1m9BBEwmU-0Nw@mail.gmail.com>
	<54918945.3070309@vmware.com>
	<CAAXqS3BMGeypjdKs5tO-17hvJd8CaetYVFsQHZX_Djmj94nVuQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

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



view thread (9+ messages)  latest in thread

Message-ID: <54919AD2.9000802@vmware.com>
Permalink:  ../54919AD2.9000802@vmware.com/
Also on:    postgresql.org/message-id/54919AD2.9000802@vmware.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-odbc@postgresql.org
  Cc: hlinnakangas@vmware.com, gaurav.srivastava@globallogic.com
  Subject: Re: High CPU shoot during poll retry
  In-Reply-To: <54919AD2.9000802@vmware.com>
  References: <CAAXqS3Aag2vVu9yKQvb-jdSPuTkNSi_X6HphQcz4adgXL1gOFQ@mail.gmail.com> <548B569D.4040008@vmware.com> <CAAXqS3BFjOe8MBwprVqLwTH4BFvU55v6fGjd77XTZdj19raDuQ@mail.gmail.com> <5490477E.5000303@vmware.com> <CAAXqS3CorzgfdWmNWsbvcjjXZ37F5O443S78M1m9BBEwmU-0Nw@mail.gmail.com> <54918945.3070309@vmware.com> <CAAXqS3BMGeypjdKs5tO-17hvJd8CaetYVFsQHZX_Djmj94nVuQ@mail.gmail.com> <54919AD2.9000802@vmware.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