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 1oHVVQ-0006eU-D3 for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Jul 2022 19:18:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oHVVP-0002iR-9l for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Jul 2022 19:18:39 +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 1oHVVO-0002iF-9M for pgsql-hackers@lists.postgresql.org; Fri, 29 Jul 2022 19:18:39 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oHVVE-00042J-OT for pgsql-hackers@postgresql.org; Fri, 29 Jul 2022 19:18:36 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 6484132008FF; Fri, 29 Jul 2022 15:18:24 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 29 Jul 2022 15:18:25 -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=1659122303; x=1659208703; bh=C Q8JkXFhC8TkMVOmnCKIxL50N9kMtC2eC12vCsUBBMw=; b=WLXhat/sidz5r7rrA 9Dsb0FGzAV/VEsQJsovIHcmG/ckpbM41RIYBkZXSoh6NiWX0vypMKyb3IC2XIGmQ 9OgmVptiHWDFmukETPQWvgcVWytSIQkQ7yd8+EH6Awax7aWPseMuIJj2ySOKt6Qm SfsAl+RHqkQk/oU2Wh3UvYnVqAxm2wswPMhCc8x4siDM7xtB23wkaRtkTm0rmLel QH1TlXyhS4zrMw964T2ZphdJebdumkJrI6SPuoZg3fPRSirWI3smISXOx7krLSsk LYRygs7sM7z9gfRBFCikn/9wvAbJukMBUjEvYAnkEQh/hvFsAvMFXBikuevh4x8O ZjbLA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddujedgudefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeej keffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtoh hmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghl vhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 29 Jul 2022 15:18:23 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id C9A02376; Fri, 29 Jul 2022 21:18:18 +0200 (CEST) Date: Fri, 29 Jul 2022 21:18:18 +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: <20220729191818.s5ygny5uhkdkf2fb@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: > Yeah, if we think it's OK to pass around structs, then that seems like > the right solution. Otherwise functions that take RelFileLocator > should be changed to take const RelFileLocator * and we should adjust > elsewhere accordingly. We do that in other places. See get_object_address() for another example. Now, I don't see *why* they do it. I suppose there's notational convenience; for get_object_address() I think it'd be uglier with another out argument (it already has *relp). For smgropen() it's not clear at all that there is any. For the new function, there's at least a couple of places that the calling convention makes simpler, so I don't see why you wouldn't use it that way. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Use it up, wear it out, make it do, or do without"