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 */
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