Re: [HACKERS] Possible explanation for Win32 stats

Поиск
Список
Период
Сортировка
От korryd@enterprisedb.com
Тема Re: [HACKERS] Possible explanation for Win32 stats
Дата
Msg-id 1154201708.27274.17.camel@sakai.localdomain
обсуждение исходный текст
Ответ на Re: [HACKERS] Possible explanation for Win32 stats regression  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: [HACKERS] Possible explanation for Win32 stats regression  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-patches
heh. I was just doing it the way Tom suggested - see attached. With a 
little more trouble we could also keep track if the listened for events 
and sometimes save ourselves a second call to WSAEventSelect, but I'm 
not sure it's worth it.

It all depends on the overhead of WSAEventSelect().  I'm sure your version would run faster, but I just don't know if "slower" would be measurable.

BTW:  I would suggest changing your comment to:

       /*
        * make sure we don't multiplex this kernel event object with a different socket
        * from a previous call
        */

Thanks for tackling this problem too.

    -- Korry


----
  Korry Douglas    korryd@enterprisedb.com
  EnterpriseDB      http://www.enterprisedb.com

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: CREATE INDEX ... ONLINE
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [HACKERS] Possible explanation for Win32 stats regression