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

From Dmitriy Igrishin
Subject Re: Millisecond-precision connect_timeout for libpq
Date
Msg-id CAAfz9KNUhnn8m8aE3u+Sv6==B70kv4916mqXda6F1Ej2rP9aTQ@mail.gmail.com
Whole thread Raw
In response to Re: Millisecond-precision connect_timeout for libpq  (Merlin Moncure <mmoncure@gmail.com>)
Responses Re: Millisecond-precision connect_timeout for libpq
List pgsql-hackers



2013/7/9 Merlin Moncure <mmoncure@gmail.com>
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?
+1. 

merlin


--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



--
// Dmitriy.

pgsql-hackers by date:

Previous
From: Sawada Masahiko
Date:
Subject: Re: Patch for fail-back without fresh backup
Next
From: Greg Stark
Date:
Subject: robots.txt on git.postgresql.org