Re: Connection Timeout - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: Connection Timeout
Date
Msg-id 4C076F51.9060202@tpf.co.jp
Whole thread Raw
In response to Connection Timeout  (Mike Toews <mwtoews@gmail.com>)
Responses Re: Connection Timeout  (Mike Toews <mwtoews@gmail.com>)
List pgsql-odbc
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



pgsql-odbc by date:

Previous
From:
Date:
Subject: [ psqlodbc-Bugs-1010834 ] QA Notice: Package has poor programming practices
Next
From: Mike Toews
Date:
Subject: Re: Connection Timeout