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 1j6KN9-0003uR-LV for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2020 20:30:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j6KN7-00039S-BV for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2020 20:30:33 +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 1j6KN7-00039K-2f for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2020 20:30:33 +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 1j6KMz-00056x-UN for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2020 20:30:32 +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 01OKULfx018626; Mon, 24 Feb 2020 15:30:21 -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: <15886.1582572468@sss.pgh.pa.us> References: <20200224191453.GA711@alvherre.pgsql> <15886.1582572468@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 24 Feb 2020 14:27:48 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18624.1582576221.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 24 Feb 2020 15:30:21 -0500 Message-ID: <18625.1582576221@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Alvaro Herrera writes: >> 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? Oh, but of course it does. So let's do errdetail("There are too many open files on the local server."), #ifndef WIN32 errhint("Raise the server's max_files_per_process and/or \"ulimit = -n\" limits.") #else errhint("Raise the server's max_files_per_process setting.") #endif I don't think there's much point in telling Windows users about _setmaxstdio() here. regards, tom lane