Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c
Дата
Msg-id 200210152013.g9FKD2J06510@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c
Список pgsql-hackers
Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
> > The thing was that with the extra +1, I was repeatedly getting a wall-clock 
> > time of 2 seconds with a timeout set to 1 second. It seemed odd to have my 1 
> > second timeout automatically turned into 2 seconds every time.
> 
> That is odd; seems like you should get between 1 and 2 seconds.  How
> were you measuring the delay, exactly?

Remember, that if you add 1, the select() is going to get tv_sec = 2, so
yes, it will be two seconds.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: John Halderman
Дата:
Сообщение: Re: foreign key problem with pg_dump under 7.3b2
Следующее
От: Tom Lane
Дата:
Сообщение: Re: orderRules() now a bad idea?