Re: timed PgConnection::Connect - Mailing list pgsql-patches

From Denis A Ustimenko
Subject Re: timed PgConnection::Connect
Date
Msg-id 20020809094857.GB1210@denis.oldham.ru
Whole thread Raw
In response to Re: timed PgConnection::Connect  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Hi!

Here is rewrited version. Time out can be specified as "connect_timeout" parameter. API hadn't changed.

On Wed, Aug 07, 2002 at 09:52:05AM -0400, Tom Lane wrote:
> Denis A Ustimenko <denis@oldham.ru> writes:
> > I write this to put timeout parameter in PgConnection::Connect.
>
> This patch seems really messy.  In the first place, the timeout isn't on
> total connection delay, but on individual waits of which there will be
> several.  I'd think that's not really what you want.  In the second
> place, I'd expect a timeout to be specified as a new optional parameter
> in connection strings, not as an ad-hoc additional parameter in the API.
>
>             regards, tom lane

--
Regards
Denis

Attachment

pgsql-patches by date:

Previous
From: Gavin Sherry
Date:
Subject: CREATE TEMP TABLE .... ON COMMIT
Next
From: Tom Lane
Date:
Subject: Re: adding PGPASSWORDFILE to libpq