re: pgbench stopped supporting large number of client connections on Windows

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема re: pgbench stopped supporting large number of client connections on Windows
Дата
Msg-id CAEudQAqP16wL-dea5p0EG-gvcjNx38XoAgWDa53=pioX=EtsGw@mail.gmail.com
обсуждение исходный текст
Ответ на pgbench stopped supporting large number of client connections on Windows  (Marina Polyakova <m.polyakova@postgrespro.ru>)
Ответы Re: pgbench stopped supporting large number of client connections on Windows
Список pgsql-hackers
Hi Marina,
Nice catch.

>rc/bin/pgbench/pgbench.c, the function add_socket_to_set:
>if (fd < 0 || fd >= FD_SETSIZE)
>{
>/*
>* Doing a hard exit here is a bit grotty, but it doesn't seem worth
>* complicating the API to make it less grotty.
>*/
>pg_log_fatal("too many client connections for select()");
>exit(1);
>}

It seems to me that the limit is hardcode in, src/backend/port/win32/socket.c

FD_SETSIZE * 2

that would be 2048?

regards,

Ranier Vilela

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

Предыдущее
От: Jacob Champion
Дата:
Сообщение: Re: Support for NSS as a libpq TLS backend
Следующее
От: Sergei Kornilov
Дата:
Сообщение: Re: Allow some recovery parameters to be changed with reload