Re: pqlib in c++: PQconnectStart PQconnectPoll - Mailing list pgsql-general

From Tom Lane
Subject Re: pqlib in c++: PQconnectStart PQconnectPoll
Date
Msg-id 20064.1187142173@sss.pgh.pa.us
Whole thread Raw
In response to Re: pqlib in c++: PQconnectStart PQconnectPoll  ("madhtr" <madhtr@schif.org>)
List pgsql-general
"madhtr" <madhtr@schif.org> writes:
> From: "Tom Lane" <tgl@sss.pgh.pa.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

pgsql-general by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: MVCC cons
Next
From: "Phoenix Kiula"
Date:
Subject: Re: Compound Indexes