Re: pqlib in c++: PQconnectStart PQconnectPoll

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "madhtr" <madhtr(at)schif(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pqlib in c++: PQconnectStart PQconnectPoll
Date: 2007-08-15 01:42:53
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

"madhtr" <madhtr(at)schif(dot)org> writes:
> From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
>> ... although it takes a good long while (several seconds) because of the
>> "sleep(1)" in the interaction with the postmaster.

> Sleep(1) should be only 1/1000 of a second. I do that so I don't hammer the
> processor with my while loop when i am not using a select().

Ah. I was interpreting it in Unix terms, where sleep() measures in
seconds. With a wait of a few msec it might not be too intolerable.

regards, tom lane

In response to


Browse pgsql-general by date

  From Date Subject
Next Message Phoenix Kiula 2007-08-15 01:47:27 Re: Compound Indexes
Previous Message Merlin Moncure 2007-08-15 01:36:28 Re: MVCC cons