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 1i2b2H-0005yw-AQ for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Aug 2019 12:57:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i2b2F-0002Wm-PF for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Aug 2019 12:57:19 +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 1i2b2F-0002Qo-Eo for pgsql-bugs@lists.postgresql.org; Tue, 27 Aug 2019 12:57:19 +0000 Received: from mail-io1-xd41.google.com ([2607:f8b0:4864:20::d41]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i2b28-0000r7-Eu for pgsql-bugs@lists.postgresql.org; Tue, 27 Aug 2019 12:57:19 +0000 Received: by mail-io1-xd41.google.com with SMTP id j5so45990768ioj.8 for ; Tue, 27 Aug 2019 05:57:11 -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=I4o2RgwBviWscdZRi92iSZrJRjzpCmZkyccrfRYLxwY=; b=EkFxnS8h9uylflrnNCe47Y7z5BXw76ghqoac8dORfsvtjmgQ7DmAncyvdzBYwYQtmr b5Ly+PhKIovPR/um1VxRTy8kUIwpChSw0pdE9R1+7/9U2mc2d9soZel2rrQ7l3XCder9 NS8oeYB9WbEnikT2UMdDKW17XMFfd8s1UB5ge0+tHBkkvM6XwzVFuOTwQRki0eF/rnwy o6VBGGzcAbYblINZLTihu41G3rSqWTrBJT1cBeSt86xjlfk2FDEqdE01co9+VnHjucKk 0F4x1dFerqQ9CHUsZ0Z/Z/rgcYWX8HTyYmO4B0diKhJvaJ4623dpExlvpwldiPptG5no +Olw== 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=I4o2RgwBviWscdZRi92iSZrJRjzpCmZkyccrfRYLxwY=; b=alj0oG0nI/BQFBJ3+xkjlaIVgmFVtLfSvbQDI/rytIaWXkw69n+MJHDcT9neGQ389U HFlow7EWA0lmXTIWWJ7AKn9UjhGEPdh13uSpxgypaS+NTzB/8iAvaes8gOFAyZvNVfrx D0qcnZGsWl0Xud+5NLp+GGmz/sNG2xPMvEYj8cZThwbRRl3n1AJB9RXPwM2GlTAOw/Rw K5hxWYQIU0J9pg/dn/emINwi5XD2tX4incYi0wlho4EJenXtHLFhprWkZa3E7/lSI2Pw qZAdoLH3kA+q/TzYhF3qJfILqhQw+F2RxzFDqrVZvyeR/HgSChUhHEB27nmgFLpVko3s bSBQ== X-Gm-Message-State: APjAAAU6Ucgfnd77IZiSUPVwLnLPb0uVuJPOqRSAPDE6ToW/rG7C25nX NGji9IW23u8EixfxgOIuc3mIbwBoBTU= X-Google-Smtp-Source: APXvYqyRJMQmigQgTorcE68J4PsdrKY7T706OWKsVftZZna8OFgPCerhcoAhB+EdmnIIB7Q3SlORsw== X-Received: by 2002:a0c:a0c2:: with SMTP id c60mr19847646qva.10.1566908987184; Tue, 27 Aug 2019 05:29:47 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([191.125.227.203]) by smtp.gmail.com with ESMTPSA id m21sm1559632qkk.131.2019.08.27.05.29.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2019 05:29:46 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 7996C123A05; Tue, 27 Aug 2019 08:29:39 -0400 (-04) Date: Tue, 27 Aug 2019 08:29:39 -0400 From: Alvaro Herrera To: Michael Paquier Cc: jungle boogie , Tom Lane , Andres Freund , Dilip Kumar , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclared identifier 'FD_SETSIZE' Message-ID: <20190827122939.GA20809@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190827040803.GD7422@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-27, Michael Paquier wrote: > Thanks for testing out. And my apologies for introducing the issue in > the first place. BTW one nit: in deference to src/tools/git_changelog, it would be better to make all branch commit messages exactly the same, and if you want to make per-branch distinctions make them in the unified text ("On branches so and so, also add a newline", etc) rather than writing per branch slightly different messages. They way you did it, git_changelog creates three entries when it could have been a single one: Author: Michael Paquier Branch: REL_11_STABLE [128e9b2cc] 2019-08-27 09:11:43 +0900 Branch: REL_10_STABLE [c90096009] 2019-08-27 09:11:48 +0900 Branch: REL9_6_STABLE [c4d75313e] 2019-08-27 09:12:10 +0900 Branch: REL9_5_STABLE [4ed3bda49] 2019-08-27 09:12:14 +0900 Fix failure of --jobs with vacuumdb on Windows FD_SETSIZE needs to be declared before winsock2.h, or it is possible to run into buffer overflow issues when using --jobs. This is similar to pgbench's solution done in a23c641. This has been introduced by 71d84ef, and older versions have been using the default value of FD_SETSIZE, defined at 64. While on it, add a missing newline to the previously-added error message. Per buildfarm member jacana, but this impacts all Windows animals running the TAP tests. I have reproduced the failure locally to check the patch. Author: Michael Paquier Reviewed-by: Andrew Dunstan Discussion: https://postgr.es/m/20190826054000.GE7005@paquier.xyz Backpatch-through: 9.5 Author: Michael Paquier Branch: REL_12_STABLE [b783a38d4] 2019-08-27 09:11:38 +0900 Fix failure of --jobs with vacuumdb on Windows FD_SETSIZE needs to be declared before winsock2.h, or it is possible to run into buffer overflow issues when using --jobs. This is similar to pgbench's solution done in a23c641. This has been introduced by 71d84ef, and older versions have been using the default value of FD_SETSIZE, defined at 64. Per buildfarm member jacana, but this impacts all Windows animals running the TAP tests. I have reproduced the failure locally to check the patch. Author: Michael Paquier Reviewed-by: Andrew Dunstan Discussion: https://postgr.es/m/20190826054000.GE7005@paquier.xyz Backpatch-through: 9.5 Author: Michael Paquier Branch: master [9acda7311] 2019-08-27 09:11:31 +0900 Fix failure of --jobs with reindexdb and vacuumdb on Windows FD_SETSIZE needs to be declared before winsock2.h, or it is possible to run into buffer overflow issues when using --jobs. This is similar to pgbench's solution done in a23c641. This has been introduced by 71d84ef, and older versions have been using the default value of FD_SETSIZE, defined at 64. Per buildfarm member jacana, but this impacts all Windows animals running the TAP tests. I have reproduced the failure locally to check the patch. Author: Michael Paquier Reviewed-by: Andrew Dunstan Discussion: https://postgr.es/m/20190826054000.GE7005@paquier.xyz Backpatch-through: 9.5 Thanks! -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services