PostgreSQL does not start when max_files_per_process> 1200 on Windows 7

From: Victor Spirin <v(dot)spirin(at)postgrespro(dot)ru>
To: pgsql-hackers(at)postgresql(dot)org
Subject: PostgreSQL does not start when max_files_per_process> 1200 on Windows 7
Date: 2018-09-05 10:06:06
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

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.

When I open a real file and use its descriptor for the dup, no error
occurs. In the patch I check the file postgresql.conf

--
Victor Spirin
Postgres Professional:http://www.postgrespro.com
The Russian Postgres Company

Attachment Content-Type Size
max_files_per_process.patch text/plain 1.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christoph Berg 2018-09-05 10:35:25 Re: Collation versioning
Previous Message Alexander Korotkov 2018-09-05 09:35:41 Re: [HACKERS] Bug in to_timestamp().