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 1hzyQ4-0001Tv-6c for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Aug 2019 07:19:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hzyQ2-0007Nl-6z for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Aug 2019 07:19:02 +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 1hzyQ0-0007JU-N0 for pgsql-bugs@lists.postgresql.org; Tue, 20 Aug 2019 07:19:02 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hzyPw-0000aB-Bf for pgsql-bugs@lists.postgresql.org; Tue, 20 Aug 2019 07:19:00 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 47DAC3C6; Tue, 20 Aug 2019 03:18:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 20 Aug 2019 03:18:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=oqQH/4Kx5AHWW1OOkm+9TfPxe3s b10PwLbboW4HE2wU=; b=T77odK05GyKp43+nB9zvCyB3JyKO7G4RjrrCgbUHw60 93LnTSN94Jlyly/rsn1Py9FqC/IdbF8eLusSkrDcuErGTC46Hxj196lpeo8yq6K3 Muv7JEzcR+B79RdbqiA9zFI37HJ9rbRtM7Q2IsKF495xWQNQG+y8Iev77X/NunNM DywTRlGvAGfOn9Rlx9oL0UOMpaT2fXHgY5k553XnObo0zH+bei3a0UeUbRa+2Jr0 3iAV+9dufLCSW+RQWdyVrtJM9HcLkIeFMwgE/KywKiHO3FS/Dvm9NoMlllid6Qse GSDNcl9rVdI1OgSQkmMf7b5sxjcI33AQHi3LiAIDC5w== 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=oqQH/4 Kx5AHWW1OOkm+9TfPxe3sb10PwLbboW4HE2wU=; b=FdcJpAz5lbQ6FB92EAHOSl Ch0XVwLjuVylcvydqtQVjXEc0VovYFiSkFYnknFWUcTjohL3021y4OTpAxAd48ZH /VMZGkbJ2r1yF8rdAfG7sk602/av2gv3X7Vl8VFR4NIJDxzexEUP/Nrgkj5Zqh/b NcwUvwR5z6xHuYQ+FngcNMkqVgUVlhRm/mQ2bjkVKZXA4el+nDjTgQuVPFbwPuSQ tO2F4unD3Lh/tCcAr/Sh7dfZD9LPwQSFPo6Zmf6iKMBAUeyJGS5IEim3iMKJIqx4 KARAuW1R/CVNAkUrE2xO5yrAb77Bg2TVJcXFrqkgXw3Wo5CBVSRHR25r/f68Q4Fg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudegtddguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecukfhppeduudekrddvgedurddvhedtrdduleeinecurfgr rhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuve hluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (mp76f1fac4.ap.nuro.jp [118.241.250.196]) by mail.messagingengine.com (Postfix) with ESMTPA id 78BF5380074; Tue, 20 Aug 2019 03:18:49 -0400 (EDT) Date: Tue, 20 Aug 2019 16:18:41 +0900 From: Michael Paquier To: Tom Lane Cc: Alvaro Herrera , Andres Freund , 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: <20190820071841.GF1841@paquier.xyz> References: <20190818001858.ho3ev4z57fqhs7a5@alap3.anarazel.de> <20190819025953.GA15110@alvherre.pgsql> <20190819042832.GA1702@paquier.xyz> <23514.1566189171@sss.pgh.pa.us> <20190819051251.GB18166@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0hHDr/TIsw4o3iPK" Content-Disposition: inline In-Reply-To: <20190819051251.GB18166@paquier.xyz> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0hHDr/TIsw4o3iPK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Aug 19, 2019 at 02:12:51PM +0900, Michael Paquier wrote: > Thanks. I have somewhat not catched what Andres was suggesting here. > So attached are two patches: > - 0001 should take care of the compilation failure, by moving > FD_SETSIZE into scripts_parallel.c. I have been able to work on this one more, and applied a fix that should address the compilation failure. While on it, I have reduced the maximum number of parallel slots allowed to give some room for pre-existing fds as pgbench did before moving to its poll() implementation. > - 0002 makes vacuumdb and reindexdb fail when trying to assign a > socket with an unsupported range. Should this bit be backpatched? We > are doing that for vacuumdb for some time now, and the error is > confusing so I would prefer fixing it on older branches as well. For this one, I am still not completely sure which way we would want to go. The issue exists down to 9.6 for vacuumdb, so could a fix like the one I previously proposed be acceptable for a back-patch as this is not worth the complexity? Should we try to move to a poll()-based implementation like pgbench on HEAD, which most likely would result in having pgbench also use parallel slots with a bit of refactoring, no? -- Michael --0hHDr/TIsw4o3iPK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl1bntEACgkQnvQgOdby QH3EFg/+MpPhmCx04m5a9I86liNceTkBOKmaK296c5JOEUKhqh7r7zNE7CPofDo1 OFgEu2MAawcR+uttJ1y2IuIy/ONrhuaYic26ulTzhdHJtDGLawEO+SOzDQLPH854 74VA6m4Sfwv5kRQ5+BE630DzOUemN9o2NgXNpKXJJkVqWKXKLCJo0gv5BlBXAWBb U7vDsZiScV6Lc1V8QswG8cdn8WVbdE2iLvCneqHApZPHXZzpYjKU0zSPHmx1LYAK iiMiwBkv4G5TgU68qzocFEh/edhixslCCh4q8nH51ihQxzCqH4gIOte9p3mffYle ie0b2JNLZh/iP21DNmrtITPr7DIOEf8lxvpVwx6an7h/ec+yj4mx6/hrGakamBu1 vXuPtBZrmIOCluU5j14KvN8IDury6oyQaHWNFlO72UREwfutVB2d8sT8UTLsmWtJ PpxUGLMTv+qRyQGNg0laPvFuL9nU3NXYoZhYxuyhn5F1EBFP2LeMaAnhUrqdKNwP F0DPWo2hq8aUjmXum41sg16On0Ri0bRvgxjHDRLs8IHVlPcdUrHktrkGABU4VhAB WjKrl0nj/eMtbGSA1jDwvc0cjwLoAEN3MygjgL/8FiLc60uEt/XI1mJlwtDlaZvf LD/ae+1dKRvYoIskn8pC8bKHuRE4xf52x1CxBdwEf3cz5hWHr2U= =u3lj -----END PGP SIGNATURE----- --0hHDr/TIsw4o3iPK--