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 1nXQWA-0007TR-UP for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Mar 2022 16:40:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nXQW9-0006iJ-OK for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Mar 2022 16:40:57 +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 1nXQW8-0006i8-Hf for pgsql-hackers@lists.postgresql.org; Thu, 24 Mar 2022 16:40:57 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nXQW3-0002NJ-6e for pgsql-hackers@lists.postgresql.org; Thu, 24 Mar 2022 16:40:56 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 5F5D13201E15; Thu, 24 Mar 2022 12:40:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 24 Mar 2022 12:40:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=qp1RzUmWPXpnliPw+oDZhbyQkMM64X3qnGJBrFXHp Wg=; b=I91sDI4GVP9VFndrj80Kpm3kNksDlR/MEL+y1hqpupxF2CpZjJ56lMXJX NDM2gqXdVUXO+sCDSO5BpqiwoL5oNldOMrrIv8nDScG2Sh/wrDOvLl6angfl+6h+ 9jHJ/aUfyMcOhnabES6/iGPyralww9DoqLQdX5YMqUCdLtroWzMck+zEZ4R6ktoZ HP0HZ9kXRWSCjIHS6ASytl6fsEz0Wj6XHpv9H9gXCGTOIMf8/qt8kjVkXks0ZscT Xrhr92EcCXXM46G9Q2E/3E47qd0qfX3pU0+9iovAAkjd5txZJPOL0ygT1/dXD+l/ SpSYBQrJOIbrCwxsao5kX5mlWaetg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudegledgkeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepfeejgeehteeuhfevvedu leeufedtjeetiefftedvudfhtdeifefgueettdevgefgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 24 Mar 2022 12:40:46 -0400 (EDT) Message-ID: Date: Thu, 24 Mar 2022 17:40:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: turn fastgetattr and heap_getattr to inline functions Content-Language: en-US To: Michael Paquier , Alvaro Herrera Cc: Pg Hackers References: <202203241021.uts52sczx3al@alvherre.pgsql> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 24.03.22 13:09, Michael Paquier wrote: > Hmm. I think that you'd better add a return at the end of each > function? Some compilers are dumb in detecting that all the code > paths return (aka recent d0083c1) and could generate warnings, even if > things are coded to return all the time, like in your patch. That is a different case. We know that not all compilers understand when elog/ereport return. But no compiler is stupid enough not to understand that foo() { if (something) return this; else return that; } always reaches a return.