Re: Millisecond-precision connect_timeout for libpq - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: Millisecond-precision connect_timeout for libpq
Date
Msg-id CAHyXU0weaox7pXxf13FZFBXUvDkgDmYHk3nUqYjn2Uvq-AdV3w@mail.gmail.com
Whole thread Raw
In response to Millisecond-precision connect_timeout for libpq  (ivan babrou <ibobrik@gmail.com>)
Responses Re: Millisecond-precision connect_timeout for libpq
List pgsql-hackers
On Fri, Jul 5, 2013 at 12:28 PM, ivan babrou <ibobrik@gmail.com> wrote:
> Hi, guys! I made a quick patch to support floating number in
> connect_timeout param for libpq. This will treat floating number as
> seconds so this is backwards-compatible. I don't usually write in C,
> so there may be mistakes. Could you review it and give me some
> feedback?

First thing that jumps into my head: why not use asynchronous
connection (PQconnectStart, etc) and code the timeout on top of that?

merlin



pgsql-hackers by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: [PATCH] Add session_preload_libraries configuration parameter
Next
From: Markus Wanner
Date:
Subject: Re: Millisecond-precision connect_timeout for libpq