From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Mike Toews <mwtoews@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Connection Timeout
Date: Thu, 03 Jun 2010 18:01:05 +0900
Message-ID: <4C076F51.9060202@tpf.co.jp> (raw)
In-Reply-To: <AANLkTin4MIcnAuT7VDVjBTdMMUgFkB8SxWBlId5Vgwi1@mail.gmail.com>
References: <AANLkTin4MIcnAuT7VDVjBTdMMUgFkB8SxWBlId5Vgwi1@mail.gmail.com>
Mike Toews wrote:
> Hi,
>
> It doesn't appear there is a connection timeout parameter (e.g.,
> ConnString="...;Timeout=5;..."), so I'm not sure how to throw an error
> quicker if the driver cannot connect to the host:port. I'm waiting about
> 18 seconds, which I'd like to reduce to 5 seconds to streamline my
> program startup if the postgres server is not available. Did I read the
> documentation incorrectly, or are there any plans to introduce a Timeout
> parameter? I'm using the latest version (08.04.0200).
What kind of tool(e.g. ADO, ADO.NET on Windows) are you using?
regards,
Hiroshi Inoue
> There was a similar unanswered question a while ago:
> http://archives.postgresql.org/pgsql-odbc/2003-06/msg00025.php
>
> -Mike
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: inoue@tpf.co.jp, mwtoews@gmail.com
Subject: Re: Connection Timeout
In-Reply-To: <4C076F51.9060202@tpf.co.jp>
References: <AANLkTin4MIcnAuT7VDVjBTdMMUgFkB8SxWBlId5Vgwi1@mail.gmail.com> <4C076F51.9060202@tpf.co.jp>
* 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