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 1oHUU1-0003BO-OT for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Jul 2022 18:13: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 1oHUTz-0002wE-Bm for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Jul 2022 18:13:07 +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 1oHUTz-0002v7-1y for pgsql-hackers@lists.postgresql.org; Fri, 29 Jul 2022 18:13:07 +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 1oHUTr-0003Yk-HF for pgsql-hackers@postgresql.org; Fri, 29 Jul 2022 18:13:06 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id F1B02320090B; Fri, 29 Jul 2022 14:12:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 29 Jul 2022 14:12:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1659118376; x=1659204776; bh=M YUfOl5+hTvqCci7W83U83Jc3FkM87YMzSSsr4BVKow=; b=r5IZFDc7jy//IF/qG pFHILuF1FLm3mEhM55uoo1NiXkHVT+h3lPE07N+PP7nVk62TmTWtPQ4xO1mquHnw Jtrl1MRbOGQ5Fr0Bq0SbpJGIX6v6juik4N2xs2IwYKyCzvLpmnYQx/8j9jZmoOyf zbsAsDDzDJLeqrbzgGOhW98L70BVB5fkUfFtpNyevXDbm7DvSZFYjHAPQa6tb30f NJhCOHO7fj4WHO6DI2WAMnUKw5jeMNlYXF+nFOCH/lQUyaileZe/EtxYVTn76uNL dflwenkAN3JUi0CfENU8hyHcE8KO2URLpNO86ern9+qXzdDRGOQ5DIpQ8P5B6Q8W wCRBw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddujedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpefgtdegleeggffftdeiuddufffhveekgfdufeethefg tefhkedvgeejlefhteehvdenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtoh hmpdhpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 29 Jul 2022 14:12:55 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 16477376; Fri, 29 Jul 2022 20:12:53 +0200 (CEST) Date: Fri, 29 Jul 2022 20:12:53 +0200 From: Alvaro Herrera To: Robert Haas Cc: Dilip Kumar , Andres Freund , Heikki Linnakangas , Thomas Munro , pgsql-hackers , vignesh C Subject: Re: making relfilenodes 56 bits Message-ID: <20220729181253.jg6mjfoezznzgfor@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Jul-29, Robert Haas wrote: > I was taught that when programming in C one should avoid returning a > struct type, as BufTagGetRelFileLocator does. Doing it like that helps RelFileLocatorSkippingWAL, which takes a bare RelFileLocator as argument. With this coding you can call one function with the other function as its argument. However, with the current definition of relpathbackend() and siblings, it looks quite disastrous -- BufTagGetRelFileLocator is being called three times. You could argue that a solution would be to turn those macros into static inline functions. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "I'm impressed how quickly you are fixing this obscure issue. I came from MS SQL and it would be hard for me to put into words how much of a better job you all are doing on [PostgreSQL]." Steve Midgley, http://archives.postgresql.org/pgsql-sql/2008-08/msg00000.php