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 1j6JOa-0001vd-8W for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2020 19:28:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j6JOY-00030q-Qq for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2020 19:27:58 +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 1j6JOY-00030j-Hc for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2020 19:27:58 +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 1j6JOR-0004cV-MT for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2020 19:27:58 +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 01OJRmH0015887; Mon, 24 Feb 2020 14:27:48 -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: <20200224191453.GA711@alvherre.pgsql> References: <20200224191453.GA711@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 24 Feb 2020 16:14:53 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15885.1582572468.1@sss.pgh.pa.us> Date: Mon, 24 Feb 2020 14:27:48 -0500 Message-ID: <15886.1582572468@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: >> We could also consider a HINT, along the lines of "Raise the server's >> max_files_per_process and/or \"ulimit -n\" limits." This again has >> the ambiguity about which server, and it also seems dangerously >> platform-specific. > Maybe talk about "the local server" to distinguish from the other one. OK by me. > As for the platform dependencies, I see two main options: make the hint > platform-specific (i.e have #ifdef branches per platform) or make it > even more generic, such as "file descriptor limits". I thought about platform-specific messages, but it's not clear to me whether our translation infrastructure will find messages that are inside #ifdefs ... anyone know? If that does work, I'd be inclined to mention ulimit -n on non-Windows and just say nothing about that on Windows. "File descriptor limits" seems too unhelpful here. regards, tom lane