Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kcn2v-0007Ng-IK for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Nov 2020 10:08:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kcn2u-0002q9-HK for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Nov 2020 10:08:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kcn2u-0002q2-AF for pgsql-hackers@lists.postgresql.org; Wed, 11 Nov 2020 10:08:08 +0000 Received: from wforward3-smtp.messagingengine.com ([64.147.123.22]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kcn2q-0008Om-Cf for pgsql-hackers@postgresql.org; Wed, 11 Nov 2020 10:08:07 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id C4DEE186F; Wed, 11 Nov 2020 05:08:01 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 11 Nov 2020 05:08:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=fm1; bh=eK0VBwdQOLF0YHSCwV5Gz7if4ivaugfv3QFcm+La5 qc=; b=Ohe0htT9ZabNqo1y8gheYRBHy+xBQAF+V0ulAeJxugnpfy0pYP1+fVnPJ 9i/O/uL9Is5hROrgmjyMyHZC2F/1r7/sfLE3+Nc56c1FFZBLlsXCuEuwkjs1JziZ mCj6N3/kFlJCGtqfLJGD38bTAuLvIho3hJZGBTONVoaJziPOsNV+gQhyIOEbWoGy X0ds9TEOkL+hjrPTMbDvY9+SEIn0mD3cFy/JqvMBax70K6hyzxP9cB21SnibhMir L+sGIGFu97z0tK3FXYs+ziowAA6xIYEp4SgVNtIJySYR54m8KWpj8ax0QsMCG77W amBFVsgljdOBqLEURMi3N4hMQFENg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudduledguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhfhokffffgggjggtgfesthejredttdefheenucfhrhhomheprfgv thgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsedvnh guqhhurggurhgrnhhtrdgtohhmqeenucggtffrrghtthgvrhhnpeevueetledvuedugffg vedugeduhfdvkeegueefhfdtgeeuudeghfehueegfefhieenucffohhmrghinhepvdhnug hquhgrughrrghnthdrtghomhenucfkphepkeejrddujeejrdejhedrleegnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghish gvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p57b14b5e.dip0.t-ipconnect.de [87.177.75.94]) by mail.messagingengine.com (Postfix) with ESMTPA id 67117328005E; Wed, 11 Nov 2020 05:08:00 -0500 (EST) Subject: Re: warn_unused_results To: Michael Paquier References: <20201109065606.GA11424@paquier.xyz> <8ef6a7dc-5ea1-46b3-4406-7be7d07886f0@2ndquadrant.com> <20201110033445.GH1887@paquier.xyz> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Wed, 11 Nov 2020 11:07:59 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20201110033445.GH1887@paquier.xyz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-11-10 04:34, Michael Paquier wrote: >>> I am not sure >>> about the addition of repalloc(), as it is quite obvious that one has >>> to use its result. Lists are fine, these are proper to PG internals >>> and beginners tend to be easily confused in the way to use them. >> realloc() is listed in the GCC documentation as the reason this option >> exists, and glibc tags its realloc() with this attribute, so doing the same >> for repalloc() seems sensible. > Good point. committed -- Peter Eisentraut 2ndQuadrant, an EDB company https://www.2ndquadrant.com/