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 1i0HQ5-0007uG-Bu for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Aug 2019 03:36: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 1i0HQ3-0005oY-Me for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Aug 2019 03:36: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 1i0HQ3-0005oR-AY for pgsql-bugs@lists.postgresql.org; Wed, 21 Aug 2019 03:36:19 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i0HPy-0004b0-JV for pgsql-bugs@lists.postgresql.org; Wed, 21 Aug 2019 03:36:17 +0000 Received: by mail-qt1-x841.google.com with SMTP id e8so1367491qtp.7 for ; Tue, 20 Aug 2019 20:36:14 -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=a8cJieRwT91PVRLzTwZ/rfGLcCFmJIpSJrPnP61hL7E=; b=tYjVMpV5Z9akG2aVdOBtoDeexbTVOq5c8aTN7kL3wOYH7RfI967RL5haaifDBnuD5V KVCijlG0Ld+EnB9JzcALY8f3uHkYtUZr7cNcD2V3kuYOFCcyDqRe4PTOTMj6eqbUSaLG G/U8SoZoHTw8qo4DQsslbLVDG/aCLiWzPZ09mcIX24WBPUSIxJwL1KTjzAP10FNvhY1K 55Qtg5AlR3MLZqECuotQxbtPIlQ0iK3sfjQXD25pIzde0buKV5QSQUDxNTsA+AYvzrEK 5fyrqtbI9CSkt4vpY5si14IqUhnHAGBdhO8O6dhgLxyaIl7GnE2QaLtuLru+LiY2zaUG THuA== 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=a8cJieRwT91PVRLzTwZ/rfGLcCFmJIpSJrPnP61hL7E=; b=PnZ2imvONNvdO5uzNubVC3gKHrvTJgW7UxEF4PWi8EKBgndclGR/j+cgs3MSXQA50G Om8g2vLli2YZddkENnYZZjc08YEcUX8ZWCv0pXADF0BcETFOjFxc1pALiO2uyTk4mO6U mCLDxoWVTcjLXxCknz6qWkdkdLJfEy13ISF16wSVrYMHeXafvdbAJSXE2ddUAAjRR+c1 jREgRNluTAerJri6ecNKalBHPbX7xE0w2z5kUIzZ19VcmcN+e5G40cgqJ0gSJZtCx9Vp QvMmfApcjJ8qg3tNkkIZKdbgEYm4unbiEnVlJI6/XfNatLCDyuXLy5azKhgVcLPQNftH P5wA== X-Gm-Message-State: APjAAAUzTSCIk1RP4syaLfFsobdZQug40GI+i9l/1x+p3F/61Qk+zKm8 awMo/kHC+1Vs3L5RIRP5CSeQ+8rr3zA= X-Google-Smtp-Source: APXvYqwICyyQXbC9gAzbqcvvF3b4rOwVSMF/w1lFYkUYpsAM97z2eKAszpAACh5OQanbCqdGMFuKSA== X-Received: by 2002:ac8:19fa:: with SMTP id s55mr29104053qtk.155.1566355208404; Tue, 20 Aug 2019 19:40:08 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.51.60]) by smtp.gmail.com with ESMTPSA id q62sm10084102qkb.69.2019.08.20.19.40.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2019 19:40:08 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id D5F51120AD6; Tue, 20 Aug 2019 22:40:05 -0400 (-04) Date: Tue, 20 Aug 2019 22:40:05 -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: <20190821024005.GA16883@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190821015854.GD1684@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: > + if (PQsocket(conn) >= FD_SETSIZE) > + { > + fprintf(stderr, "too many jobs for this platform's select()\n"); > + exit(1); > + } BTW why fprintf? Since you can get into this by careless use of -j, ISTM that this should be a translatable string. I'd consider pg_log_fatal(). Maybe something like "Argument of -j too large for this platform -- try %d", numslots - i. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services