Re: PostgreSQL does not start when max_files_per_process> 1200 on Windows 7

2018-09-05 Thread Victor Spirin
When max_files_per_process=1201 or more server not start. I tested and debugged this on Windows 7. On Windows 10 work all right. I found this take place after call function  count_usable_fds(int max_to_probe, int *usable_fds, int *already_open) Error occured on the first call selres = select(

Re: PostgreSQL does not start when max_files_per_process> 1200 on Windows 7

2018-09-05 Thread Andres Freund
Hi, On 2018-09-05 13:06:06 +0300, Victor Spirin wrote: > I have a bug in Windows 7 with max_files_per_process> 1200. > > Using dup (0) in the  function count_usable_fds more than 1200 times (0 = > stdin) causes further unpredictable errors with file operations. Could you expand a bit on this? G