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 1j6KmA-0004aU-Q4 for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2020 20:56:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j6Km9-0005Qs-Cu for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2020 20:56:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j6Km8-0005Fx-Qx for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2020 20:56:25 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j6Km5-0003tH-3P for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2020 20:56:23 +0000 Received: by mail-qt1-x843.google.com with SMTP id r5so7531629qtt.9 for ; Mon, 24 Feb 2020 12:56:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=nFmTjmCPFHHE4ouXFKmSGdfDY2cFaSLC4Ej9p+jiAII=; b=LwlxDspyIJ7Ritc9za+KCncxTTPh6Fa/4SMUEFIUzbn5Yv5+1YPZl6yGhNvgAzyXVv i/jCO8YkJHLN0H5iNmGiwnoAflrJWR68t3bXHwAj+o8jgGSpFORugxudDWRevxDjBx6r +qmw9AP/78CeMflg7yL1q2sndcgqWi4mHQEizD5ez+NEcdVyDsVq3avkd8Ok9WfQNnUv N9ZwJeeY7WHkeF1UxMHr7Y4Vxt+5nxltvCMKTsIMUyrrnXevbvGfNewmTOAdGDqAm47M QwWy9R+94XAw0ZaL2wFgEe+dLtE9zdiHAA0zPINNWk8UnZok+kJpBCrbDRHgqnPzwtV7 7QjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=nFmTjmCPFHHE4ouXFKmSGdfDY2cFaSLC4Ej9p+jiAII=; b=FvJNP7zauxtpJn+PxUTDgM85FAThIUATay2ODOxrGn//w+MW/2rXx40tiqzO4IaWvQ VWnOBN9J/9yoCwdssFWRcT4NvENtKIhZj5dF4zb0rKaeHb2xcaNMIuzRrZu8utSN0V1m HBSNswUotkcmlKkQmmf6dIMLpQzqUkX7C2YAnW8xUg+BAMmXeqcJrNmbM3sNmMqJ0Fyv DMKRqQY8leCg/r1ZBt8IKXdW823PcOSYps0bZIalBL497FgRgPqtZ2QXfsFZUL06/V/1 +g/0aBbH9bgo7nN+K1OGVGeZZMdQIcANp02O/QqfeacC3TTa9JdVDTKyIC6kncvd5cK2 Iz4w== X-Gm-Message-State: APjAAAU4Cxn4Fnx4sYB1/PBQ6lQYNsOQ8nEY1CfBVDbFNZcYOgE5b3vY KebU9YRv6vN/mTOB6Zfzoxx6EQ== X-Google-Smtp-Source: APXvYqxakK0oq0sSUVUKSiwmOQekikFKcSKTBcjVCyawPc6DOiaNVh8NhMWac3SxkWM4myEvYZnuow== X-Received: by 2002:ac8:664f:: with SMTP id j15mr36400129qtp.267.1582577780318; Mon, 24 Feb 2020 12:56:20 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([70.32.0.53]) by smtp.gmail.com with ESMTPSA id u49sm6573212qtb.37.2020.02.24.12.56.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2020 12:56:19 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 1A7F93005DD; Mon, 24 Feb 2020 17:55:09 -0300 (-03) Date: Mon, 24 Feb 2020 17:55:09 -0300 From: Alvaro Herrera To: Tom Lane 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. Message-ID: <20200224205509.GA5686@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <18625.1582576221@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Feb-24, Tom Lane wrote: > I wrote: > > 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 WFM. > 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(). -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services