Re: PATCH: pgbench - option to build using ppoll() for largerconnection counts
В списке pgsql-hackers по дате отправления:
| От | Fabien COELHO |
|---|---|
| Тема | Re: PATCH: pgbench - option to build using ppoll() for largerconnection counts |
| Дата | |
| Msg-id | alpine.DEB.2.20.1803011121300.7903@lancre обсуждение исходный текст |
| Ответ на | Re: PATCH: pgbench - option to build using ppoll() for largerconnection counts (Andres Freund <andres@anarazel.de>) |
| Ответы |
Re: PATCH: pgbench - option to build using ppoll() for largerconnection counts
|
| Список | pgsql-hackers |
>> -#ifdef HAVE_SYS_SELECT_H >> +#ifdef PGBENCH_USE_SELECT /* force use of select(2)? */ >> +#undef HAVE_PPOLL >> +#endif >> +#ifdef HAVE_PPOLL >> +#include <poll.h> >> +#elif defined(HAVE_SYS_SELECT_H) >> +#define POLL_USING_SELECT > > (random thing noticed while going through patches) > > It strikes me as a bad idea to undefine configure selected > symbols. Postgres header might rely on them. It also strikes me as > entirely unnecessary here. Yes, I though about this one but let it pass. Indeed, it would be sufficient to not load "poll.h" when select is forced, without undefining the configure setting. -- Fabien.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера