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 1hE6Sm-0006Xt-6G for pgsql-committers@arkaria.postgresql.org; Wed, 10 Apr 2019 06:12: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 1hE6Sl-0004jq-1Q for pgsql-committers@arkaria.postgresql.org; Wed, 10 Apr 2019 06:11:59 +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 1hE6Sk-0004jj-R4 for pgsql-committers@lists.postgresql.org; Wed, 10 Apr 2019 06:11:58 +0000 Received: from courriel.mines-paristech.fr ([77.158.173.149] helo=antispam-1.ensmp.fr) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hE6Si-0002tf-G9 for pgsql-committers@lists.postgresql.org; Wed, 10 Apr 2019 06:11:58 +0000 Received: from smtp-5.mines-paristech.fr (smtp.mines-paristech.fr [77.158.173.146]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by antispam-1.ensmp.fr (antispam.mines-paristech.fr) with ESMTPS id D3B6255E43; Wed, 10 Apr 2019 08:11:55 +0200 (CEST) Received: from lancre (unknown [212.91.77.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-5.mines-paristech.fr (Postfix) with ESMTPSA id 66656201B7; Wed, 10 Apr 2019 08:11:55 +0200 (CEST) Date: Wed, 10 Apr 2019 08:11:54 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@lancre To: Michael Paquier cc: Masahiko Sawada , Alvaro Herrera , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix memory leak in pgbench In-Reply-To: <20190410060738.GC2728@paquier.xyz> Message-ID: References: <20190410060738.GC2728@paquier.xyz> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1563528758-1554876715=:19300" X-CLAMAV-SCAN: ok X-VRSPAM-SCORE: -100 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudeigddutdeiucetufdoteggodetrfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvufgjkfhffgggtgesmhdtreertderjeenucfhrhhomhephfgrsghivghnucevqffgnffjqfcuoegtohgvlhhhohestghrihdrvghnshhmphdrfhhrqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppedvuddvrdeluddrjeejrdekleenucfrrghrrghmpehmohguvgepshhmthhpohhuth X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1563528758-1554876715=:19300 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT Bonjour Michaël, >> This change leads a compiler warning on my machine: >> >> pgbench.c: In function ‘readCommandResponse’: >> pgbench.c:2730: warning: ISO C90 forbids mixed declarations and code > > C99 does not forbid that (see d9dd406). https://www.postgresql.org/docs/devel/source-conventions.html also says: "A few features included in the C99 standard are, at this time, not be permitted to be used in core PostgreSQL code. This currently includes variable length arrays, intermingled declarations and code, // comments, universal character names. Reasons for that include portability and historical practices." -- Fabien. --8323329-1563528758-1554876715=:19300--