Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B587C6329C3 for ; Thu, 3 Jun 2010 06:01:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 52501-07 for ; Thu, 3 Jun 2010 09:01:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id 9035E62F5D9 for ; Thu, 3 Jun 2010 06:01:28 -0300 (ADT) Received: (qmail 12843 invoked by uid 512); 3 Jun 2010 09:01:26 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.0.32.252) by sd2.tpf-fw-c.co.jp with SMTP; 3 Jun 2010 09:01:26 -0000 Message-ID: <4C076F51.9060202@tpf.co.jp> Date: Thu, 03 Jun 2010 18:01:05 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Mike Toews CC: pgsql-odbc@postgresql.org Subject: Re: Connection Timeout References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.157 tagged_above=-10 required=5 tests=BAYES_00=-1.9, DNS_FROM_RFC_BOGUSMX=1.668, RCVD_ILLEGAL_IP=3.399, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: *** X-Archive-Number: 201006/7 X-Sequence-Number: 10307 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