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

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Marina Polyakova <m(dot)polyakova(at)postgrespro(dot)ru>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgbench stopped supporting large number of client connections on Windows
Date: 2020-11-07 18:17:13
Message-ID: CAEudQAorvqwugKDVQaFEt7nq7-qGV=ovgTxsh=xppe7dUz4QMg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Em sáb., 7 de nov. de 2020 às 14:55, Marina Polyakova <
m(dot)polyakova(at)postgrespro(dot)ru> escreveu:

> On 2020-11-06 23:54, Ranier Vilela wrote:
> > Hi Marina,
>
> Hello!
>
> 1) If you mean the function pgwin32_select in the file
> src/backend/port/win32/socket.c, IIUC it is only used in the backend,
> see src/include/port/win32_port.h:
>
> #ifndef FRONTEND
> <...>
> #define select(n, r, w, e, timeout) pgwin32_select(n, r, w, e, timeout)
> <...>
> #endif /* FRONTEND */
>
Yes. My mistake, you right here.

> 2) It looks like FD_SETSIZE does not set a limit on the socket value on
> Windows, see
>
> https://docs.microsoft.com/en-us/windows/win32/winsock/maximum-number-of-sockets-supported-2
> :
>
> The maximum number of sockets that a Windows Sockets application can use
> is not affected by the manifest constant FD_SETSIZE. This value defined
> in the Winsock2.h header file is used in constructing the FD_SET
> structures used with select function.
>
Correct.
It seems that the limit will be defined by compilation, before the
inclusion of Winsock2.h.
Have you tried to define -DFD_SETSIZE=2048

best regards,
Ranier Vilela

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Erik Rijkers 2020-11-07 19:15:07 Re: Additional Chapter for Tutorial
Previous Message Marina Polyakova 2020-11-07 17:55:19 Re: pgbench stopped supporting large number of client connections on Windows