Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eg5HV-0007fY-41 for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Jan 2018 08:59:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eg5HU-0005pY-8I for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Jan 2018 08:59:12 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eg5HU-0005pO-1i for pgsql-hackers@lists.postgresql.org; Mon, 29 Jan 2018 08:59:12 +0000 Received: from smtp-3.mines-paristech.fr ([194.214.158.139] helo=cascavel.ensmp.fr) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eg5HN-0004n7-9M for pgsql-hackers@postgresql.org; Mon, 29 Jan 2018 08:59:11 +0000 Received: from cri.ensmp.fr (nat-any-rnt.cri.ensmp.fr [195.83.117.252]) (authenticated bits=0) by cascavel.ensmp.fr (8.15.2/8.15.2/JMMC-22/Oct/2013) with ESMTPSA id w0T8wxdW017089 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 29 Jan 2018 09:59:00 +0100 Date: Mon, 29 Jan 2018 09:58:59 +0100 (CET) From: Fabien COELHO X-X-Sender: fabien@lancre To: "Rady, Doug" cc: "pgsql-hackers@postgresql.org" , Robert Haas Subject: Re: PATCH: pgbench - option to build using ppoll() for larger connection counts In-Reply-To: <654A1247-8E1E-4E9C-937D-9119B1731FF2@amazon.com> Message-ID: References: <23D017C9-81B7-484D-8490-FD94DEC4DF59@amazon.com> <16744C85-E44E-4354-9E3D-45A7C9BDB19B@amazon.com> <81936381-841A-459D-9FE5-18659680355C@amazon.com> <654A1247-8E1E-4E9C-937D-9119B1731FF2@amazon.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Miltered: at cascavel.ensmp.fr with ID 5A6EE253.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Auth: USER-ID coelho X-j-chkmail-Enveloppe: 5A6EE253.000 from nat-any-rnt.cri.ensmp.fr/nat-any-rnt.cri.ensmp.fr/195.83.117.252/cri.ensmp.fr/ List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello Doug, > I'm not sure why you do the following trick, could you explain? > +#undef USE_SELECT > +#define USE_SELECT > > This was due to compiler complaint about USE_SELECT being redefined. > Have replaced that "trick" with a new #define POLL_USING_SELECT which is used elsewhere in pgbench instead. Ok, why not. Another option to avoid the warning and a new name could have been to "#ifndef X #define X #endif /* !X */" Patch applies cleanly, compiles cleanly for both options, local & global "make check" ok. Switched to "Ready". -- Fabien.