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.89) (envelope-from ) id 1hz9bT-000724-E2 for pgsql-bugs@arkaria.postgresql.org; Sun, 18 Aug 2019 01:03: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 1hz9bS-00050f-8c for pgsql-bugs@arkaria.postgresql.org; Sun, 18 Aug 2019 01:03:26 +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 1hz9bR-00050Y-1o for pgsql-bugs@lists.postgresql.org; Sun, 18 Aug 2019 01:03:26 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hz9bO-000171-GY for pgsql-bugs@lists.postgresql.org; Sun, 18 Aug 2019 01:03:23 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 1FC8362A; Sat, 17 Aug 2019 21:03:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sat, 17 Aug 2019 21:03:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=vS7RP+F67ZBNYHQIknctDRkTd+r myjQ+g6IAjgXPPqw=; b=QM26jHPkZrMbqtGMAGdBhm96jfr0WTCdO24vuhJ98Dz XZQgWRTnqiu3NgxzClYIR8iMpduk0eRuyNSWudcEOfOv+dlgCTY97X1j1lbJcoxu N04yHsqialOeDuZW210x6CW/lTqdRTSSwcRbBzsLjQvqLnbgyFDGrSrrP73OyDZD RlR47sD+P5PvT1/jhRVKh/ss2FsekYUCg4FSGNQ2dgTU+Uh8M3f52bX0h5xAxEFf GQWWL2f0+DlXjHCo8qTh5/+cO5etZInTDYtowi1Zb/B/zyRm6EQXJ+XnrBmDtfBy lq9/mi/g/cCVbhxHM9IKUjcPC/w2cR5zMFeOQ+Y5/gw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=vS7RP+ F67ZBNYHQIknctDRkTd+rmyjQ+g6IAjgXPPqw=; b=OAlnnAqQlJPrfoeNZPwS84 ACaetMhxKq+g5YYDrcWK8qBM2FhqT4TQaPdky8EntlaEEytSPIiF+pZde5cxctXV ErQZWzD1TbM1t0JBM6odP/VYegRDtDMJZ5YasL/ics29YTS0HY9jV2nXpEFhx8Rs XsxqlvKPxkaYfrQJV5Mz7mC97DMzl4xuQunrEz+J0GVDesC2CbpX8lMDSaeA2NWH IfPcScAyIu2ub9Bp+r5V2odbJeouy/5Gln7Q8azib6eWUbTfPWxC87fho2AcUlSC smauw9vM7ha4q7gbIa0Ie2N8PTJZlDEnyfiWVh6vVXP+UIJwszjitE9xZI2nqNOw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudefiedggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkphepie ejrdduiedtrddvudekrddvfeejnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgv shesrghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-218-237.hsd1.ca.comcast.net [67.160.218.237]) by mail.messagingengine.com (Postfix) with ESMTPA id D03FD380075; Sat, 17 Aug 2019 21:03:18 -0400 (EDT) Date: Sat, 17 Aug 2019 18:03:17 -0700 From: Andres Freund To: Tom Lane Cc: Alvaro Herrera , Dilip Kumar , jungleboogie0@gmail.com, pgsql-bugs@lists.postgresql.org, Michael Paquier Subject: Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclared identifier 'FD_SETSIZE' Message-ID: <20190818010317.kh5pxpfgpsskc6ip@alap3.anarazel.de> References: <15964-c1753bdfed722e04@postgresql.org> <24757.1566073861@sss.pgh.pa.us> <20190817210025.v4bblh4lhsxajmlj@alap3.anarazel.de> <6402.1566079145@sss.pgh.pa.us> <20190817224142.gq57z3cwt7c76dtk@alap3.anarazel.de> <20190818001858.ho3ev4z57fqhs7a5@alap3.anarazel.de> <28480.1566089996@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28480.1566089996@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-08-17 20:59:56 -0400, Tom Lane wrote: > Andres Freund writes: > > Hm. This made me think: Why is > > if (concurrentCons > FD_SETSIZE - 1) > > a useful test / error message? > > Good point, it's not. Subtracting off 10 or so might be reasonable. I wonder if we shouldn't just do the same as pgbench now does, and just only error when adding a too large fd. That does reduce the number of detected cases, true, but it also adds robustness, because larger fds are properly handled. > > What is the reason that this doesn't use poll() in the first place? > > We still support platforms without that, no? Windows, for one. Ah, right. I forgot that because we do rely on poll() in latch.c - but we do have an alternative windows implementation there... Greetings, Andres Freund