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 1i0G2Z-0004VA-DM for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Aug 2019 02:08: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 1i0G2Y-0002qo-8Y for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Aug 2019 02:07: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 1i0G2X-0002mv-4H for pgsql-bugs@lists.postgresql.org; Wed, 21 Aug 2019 02:07:58 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i0G2U-0002pr-4k for pgsql-bugs@lists.postgresql.org; Wed, 21 Aug 2019 02:07:56 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 215BF21F85; Tue, 20 Aug 2019 22:07:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 20 Aug 2019 22:07:52 -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=kPzRxTEk2sSpoTVV/eTlZ3VxrSD JktUlX9fU0YChhwk=; b=YcY1rPq3G+sJZxAlpJY4OFknsV+/9742rtQ6xV9clJM zCmDzS4IS8xh8rX52z6DyYVoXstXQusXSPBtvaZuQH6P+WHpYOohobSgD+OhvTcZ tJdZha8+9f61y3qbXUREPGU4fu8BXi0/kcY/cymWkEQ6zblaS79y5dDV64TdB6dW kd75UQrsMI04Bdks2XQQiQRV+y5agqMAUMKBFFUQ3PrKWmozfcnwI7o/YkXF/0iD fwyU5hydJ2pP+g02kAmoBYEvw7QQgSeOvOR4KMENBCGjnn0aKGJ7/ghWPwfcry3u m4JcfuXMe2bZPTIwSYofyrNkmU2pcYB17ljsGWij5Og== 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=kPzRxT Ek2sSpoTVV/eTlZ3VxrSDJktUlX9fU0YChhwk=; b=gR26vL8e8x7b7AjVVixSB8 J8GTPPxyH/bvYWzZy3HUqTGmiU23TjgDXvMLCU7297Wz/07N2A8HXkWJ3Ftyw1B/ Kv/y08NtReypNilcBJaDfJjtZvh/swyBWhGTrtZLhhFHcT4ULjps3Cs5KCilBVgL nQA6qWPZKMLLWCD2pnuTJ0MACheYhq0OL//HOlZCybNL5/b3PZzhnBoK8usOWSVt +Qzojb2EhkUrU9czrOhfqFAic5eAbSGCaLEU3Mv0AfDMO2EGhxN/nnxYo0ITZ3uL sNmEe8LB0Vp3pAatO1gBO531EfGW/kNLqBjMpiygFiQXuGJ1i6Rznf9vGrwteVSw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudegvddgheejucetufdoteggodetrfdotf 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 30187D60063; Tue, 20 Aug 2019 22:07:51 -0400 (EDT) Date: Tue, 20 Aug 2019 19:07:49 -0700 From: Andres Freund To: Michael Paquier Cc: Tom Lane , Alvaro Herrera , 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: <20190821020749.xtjw7xrtame74tao@alap3.anarazel.de> References: <20190818001858.ho3ev4z57fqhs7a5@alap3.anarazel.de> <20190819025953.GA15110@alvherre.pgsql> <20190819042832.GA1702@paquier.xyz> <23514.1566189171@sss.pgh.pa.us> <20190819051251.GB18166@paquier.xyz> <20190820160553.37nd5jxs4dk2qujy@alap3.anarazel.de> <20190821015854.GD1684@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190821015854.GD1684@paquier.xyz> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-08-21 10:58:54 +0900, Michael Paquier wrote: > On Tue, Aug 20, 2019 at 09:05:53AM -0700, Andres Freund wrote: > > I think the error message ought be reformulated, so users have a chance > > to actually understand what they need to change to avoid the error. At > > least something roughly like "too many jobs for this platform's select()". > > pgbench needs an extra fix then? Well, there the commandline option talks about clients? Whereas vacuumdb/reindexdb talk about jobs, but the old message talked about clients. So no, I don't think it makes sense to adapt it the same way. > > ISTM that we should fail in ParallelSlotsSetup(), rather than > > ParallelSlotsGetIdle() though? That's always going to be earlier, and > > there's no way to get into the problematic situation at a later point, > > no? > > Okay, done this way. What do you think about the attached? > -- > Michael > @@ -246,6 +232,18 @@ ParallelSlotsSetup(const char *dbname, const char *host, const char *port, > { > conn = connectDatabase(dbname, host, port, username, prompt_password, > progname, echo, false, true); > + > + /* > + * Fail immediately if trying to use an index in an unsupported > + * range. Doing a hard exit here is not beautiful, but that's > + * not worth complicating the logic. > + */ "that's not worth" sounds odd to me in the above sentence. I don't quite get the half-hearted rewrite of the comment from pgbench.c. Greetings, Andres Freund