pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ondrej Dzivy Balucha <balucha@horizon.sk>
To: pgsql-odbc@postgresql.org
Subject: query timeout
Date: Mon, 21 Dec 2015 14:27:36 +0100
Message-ID: <5677FE48.8010100@horizon.sk> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

Hi

Is there any keyword to setup query timeout? I have ODBC connection to 
remote PostgreSQL database.
I connect to db with isql (for example), send query and i get result. 
Now connection lost(disconnected cable or other problem) and I send next 
query. No answer or error message and isql waiting and waiting and .... 
waiting(I was waiting for 20 minutes and no response). Is there any way 
to setup timeout in odbc.ini or odbcinst.ini?

I know that ibm DB2 has this keyword in db2 client(ReceiveTimeout = time 
in seconds to wait for a reply from the server on an established 
connection before terminating the attempt and generating a communication 
timeout error). If I setup ReceiveTimeout = 5 , than I get error after 5 
seconds when no response.
I need setup this for PostgreSQL.

Regards


-- 
Ondrej Dzivy Balucha
Horizon, s.r.o. Prešov
Francisciho 21
08001 Prešov
tel/fax +421517491400/02


-- 
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 (2+ messages)  latest in thread

Message-ID: <5677FE48.8010100@horizon.sk>
Permalink:  ../5677FE48.8010100@horizon.sk/
Also on:    postgresql.org/message-id/5677FE48.8010100@horizon.sk

 · 

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: balucha@horizon.sk
  Subject: Re: query timeout
  In-Reply-To: <5677FE48.8010100@horizon.sk>
  References: <5677FE48.8010100@horizon.sk>

* 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