Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j6KrT-0004mD-4Z for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2020 21:01:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j6KrP-0005Hf-Si for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2020 21:01:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j6KrP-0005HW-Jj for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2020 21:01:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j6KrK-0005RK-AT for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2020 21:01:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 01OL1fGp019961; Mon, 24 Feb 2020 16:01:41 -0500 From: Tom Lane To: Alvaro Herrera cc: Thomas Munro , =?iso-8859-1?Q?R=E9mi?= Zara , Michael Paquier , PostgreSQL Hackers Subject: Re: pgsql: Add kqueue(2) support to the WaitEventSet API. In-reply-to: <20200224205509.GA5686@alvherre.pgsql> References: <20200224205509.GA5686@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 24 Feb 2020 17:55:09 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19959.1582578101.1@sss.pgh.pa.us> Date: Mon, 24 Feb 2020 16:01:41 -0500 Message-ID: <19960.1582578101@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2020-Feb-24, Tom Lane wrote: >> I don't think there's much point in telling Windows users about >> _setmaxstdio() here. > Yeah, telling users to _setmaxstdio() themselves is useless, because > they can't do it; that's something *we* should do. I think the 512 > limit is a bit low; why not increase that a little bit? Maybe just to > the Linux default of 1024. > Then again, that would be akin to setrlimit() on Linux. Maybe we can > consider that a separate GUC, in a separate patch, with a > platform-specific default value that just corresponds to the OS's > default, and the user can set to whatever suits them; then we call > either _setmaxstdio() or setrlimit(). Why not just drive it off max_files_per_process? On Unix, that largely exists to override the ulimit setting anyway. With no comparable knob on a Windows system, we might as well just say that's what you set. regards, tom lane