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 1i0RWv-0000D0-3f for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Aug 2019 14:24:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i0RWt-0004qi-0K for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Aug 2019 14:24:03 +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 1i0RWs-0004oW-OY for pgsql-bugs@lists.postgresql.org; Wed, 21 Aug 2019 14:24:02 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i0RWp-00031O-Si for pgsql-bugs@lists.postgresql.org; Wed, 21 Aug 2019 14:24:02 +0000 Received: by mail-qk1-x743.google.com with SMTP id p13so1921543qkg.13 for ; Wed, 21 Aug 2019 07:23:59 -0700 (PDT) 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=YD7S6d3sAt8xIm88Xk91jLB+LG0UM8TbEQ7O2B8hBm8=; b=UORk9ebOTOFmznzDdwbAwJOstC8qxTmUIXpfcK9BYw5pElu3KilVWsKLFCsa7797Xp 90iaXMh5X6ei3RMXhl2dDCEtO3wtW69B+Pyt7zXewBW6XTRBSjgUeNH3nft5ADgTi83l XaXQ/nL/s1JVxDujCKis7WetOjz9R/KF+qAHfbWakQqhOFWlSYEKVBHFqxi3J5VVo1Bz rf6qEjihOz/T2TmEwKYPGaepdJqMsEOXFLBe/8nvVg1EFrOLOpwqwqNYKJ3ID1oBghRg 3nwVUGZ+sy4SXTPcwb3fDyXtXj9RH4opvZ61XRscY1zKblH4iAU18mWYYqo55s7nLKq9 VEqw== 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=YD7S6d3sAt8xIm88Xk91jLB+LG0UM8TbEQ7O2B8hBm8=; b=P35cupDNG6NzWj5ZiM5AWpzpIIpG5pCMDQIGN/oB6JYQlfD4VxW2BTC+Rbpu7HSVO9 XpI8GJyFKYYd6molUoztQ7kUTO6pjYqhNDDphVHE2RWZResnqK70bog4jvMtyXcE3Ibo Wv149j8s4vl4v0L88bTzNRS3haEoMOm+Q5mbd5FjIyXFmoFDsv/r7SoniVU7y5k8g9sq P8a4GCEAp6VtdBMNZqZ9kn9aPoUwel12PbZU9rUDX2qLVb4yNmDIEINAhwWh9z3tgWTT zTWtqcqK9+Voo6vYuC9rHy7r8CgS9z/MBB+bLLegvQ3tNdWk5JsJm7WuB8CYct5K0fjh IM7Q== X-Gm-Message-State: APjAAAX84yBaadxSU3T9z0p6FJP7EGIbnEVOIZxUOKNo9ubZZS8FTYjm bEJc1ikEWA5dlxvzCLxGYu4ArA== X-Google-Smtp-Source: APXvYqwRvWbFI8Bz/RORDDLvWio8tN2STIxWpXughdQw5NEdjkchSPSuaLqbc0+x2k7hZAjMU6PAKQ== X-Received: by 2002:ae9:e413:: with SMTP id q19mr31406010qkc.227.1566397001466; Wed, 21 Aug 2019 07:16:41 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.217.183.202]) by smtp.gmail.com with ESMTPSA id c13sm9600378qtn.77.2019.08.21.07.16.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2019 07:16:40 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 9DBDD120E96; Wed, 21 Aug 2019 10:16:36 -0400 (-04) Date: Wed, 21 Aug 2019 10:16:36 -0400 From: Alvaro Herrera To: Michael Paquier Cc: Andres Freund , Tom Lane , Dilip Kumar , jungleboogie0@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclared identifier 'FD_SETSIZE' Message-ID: <20190821141636.GA26948@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190821140246.GE26424@paquier.xyz> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Aug-21, Michael Paquier wrote: > On Wed, Aug 21, 2019 at 09:49:54AM -0400, Alvaro Herrera wrote: > > Well, it's a user-facing error, so I'd rather make it user-friendly. > > It doesn't seem difficult, or unreliable enough not to try. > > Still, in this case, because of the nature of FD_SETSIZE the hint may > finish by being wrong, no? I am not sure that it is worth going this > way. Theoretically it is possible that we give a wrong hint, but I think it's hardly a practical reality. I'd rather give the hint and tell the user what a reasonable parameter might be. If they run under a different environment (I dunno, they use shell invocation line with other redirections I guess), then they might get a different hint next time. So what? I guess the other possibility is that there exists an operating system that returns file descriptors higher than its FD_SETSIZE, when some fds below FD_SETSIZE are still available. Doesn't seem realistic. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services