Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v64IU-00GIWT-6I for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Oct 2025 09:47:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v64IR-00FQDj-Dy for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Oct 2025 09:47:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v64IQ-00FQD7-PU for pgsql-hackers@lists.postgresql.org; Tue, 07 Oct 2025 09:47:52 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1v64IO-000T0W-2Y for pgsql-hackers@postgresql.org; Tue, 07 Oct 2025 09:47:50 +0000 Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfout.phl.internal (Postfix) with ESMTP id DCB34EC050B; Tue, 7 Oct 2025 05:47:48 -0400 (EDT) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-07.internal (MEProxy); Tue, 07 Oct 2025 05:47:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eulerto.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1759830468; x=1759916868; bh=csQC7a7CoIYfmFwWHG9BtcSjxwVMzUYKYqsgWI1UnX4=; b= i4I2SpzxsC8SLZP41gqpt1IMO4M8nC8f9DcTTkwBklY/BFolSHYEqbzxEFO9mXZr D9+4fQ+2vGedEKq4NcNZhtFXLDT7FKmXziGaoHuiSTNAmNsH37wVzJKbB3FwUjLi lIkhSc1p2CarBcmEWEuTr39tvcLvDBXNc++niDBt7EZ4Bo+k07wKayGUqFNgZ0ki 5r53K2vMQQbuX2bDIojz+jQ1GP2DzP2i35OZpEXvsgPU2vSbM7DoqzmzDPMYx05u f5+vFQGl3siUtP8dthlHgxbL2SXKvsEq9G0cG6e01nRZWjrwHkeZrfPXQA5Jq4lt 0Kl5eckoKo3a91ft0x+PlQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1759830468; x=1759916868; bh=c sQC7a7CoIYfmFwWHG9BtcSjxwVMzUYKYqsgWI1UnX4=; b=RKtKLClhAo+65tup3 eafnWVq89WAi5O4alkYoOHPyBZyi34KATs/CzOFSPB3UFiAP6CP5fpOi0dAOSDB5 UnKqcGwJlDFoNy8p/Cg58Ka4r+50HeOQgz9ZMEmmI1LV0HhuMnrqqBVk2fQqpC1P oUjKLw8WXOIiJx6fNUFFo9SQH4MwySU7dTcYR4hNlMA9yea+NktItZQ6vpYH2KJV l6S15qK7zJhiTR4QsmerFRKqCxeeVtf8IaphJHkL7afkntGyGjTk3oax0Lsh/4gx u9jHfb06v1KCpWUQPr7dSyDlieTCgwVmSrFQyzR6PQ7EaTng0mXUVE1Y3YOQSReO MHR0Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddutddtuddtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvffkjghfufgtgfesthejredtredttdenucfhrhhomhepfdfguhhlvghr ucfvrghvvghirhgrfdcuoegvuhhlvghrsegvuhhlvghrthhordgtohhmqeenucggtffrrg htthgvrhhnpeetudfhteeuueegudeilefgfffgtddvjeeufedvfefffeefgefgudejueel veekveenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpdgvnhhtvghrphhrih hsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpegvuhhlvghrsegvuhhlvghrthhordgtohhmpdhnsggprhgtphhtthhopedvpd hmohguvgepshhmthhpohhuthdprhgtphhtthhopegutggsihguohgtsehgmhgrihhlrdgt ohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrd horhhg X-ME-Proxy: Feedback-ID: i0c21471d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 7C71A1820054; Tue, 7 Oct 2025 05:47:48 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: AAYl5CW2bprZ Date: Tue, 07 Oct 2025 06:47:28 -0300 From: "Euler Taveira" To: "David Bidoc" , pgsql-hackers Message-Id: <907f85f4-ca62-438e-9dcc-33d551d29969@app.fastmail.com> In-Reply-To: References: Subject: Re: oid2name : add objects file path Content-Type: text/plain Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Oct 7, 2025, at 5:55 AM, David Bidoc wrote: > This is my first patch to the project. > Welcome to Postgres community. > I noticed that the oid2name tool does not display the file path of objects. > > I thought this could be interesting and that others might find it > useful, so I made a little patch to display the full path of objects > retrieved by the oid2name tool. These will be displayed using the -x > --extended option. > I didn't review your patch in details but I noticed 2 things that should be improved: 1. The database query is wrong because it is considering that all databases are in the default tablespace. If you create a database in a different tablespace you will notice the mistake. 2. I suggest that you change one of the examples (maybe the last one) to illustrate this feature. Since you are in this area, you could create a separate patch for show the tablespace location (-s option). Use pg_tablespace_location function. Register your patch for the next commitfest so we don't lose track of it. [1] If you don't have an account, the 'Log In' link will redirect you to the page to create a new one or even allow you to use a third party sign in. [1] https://commitfest.postgresql.org/56/ -- Euler Taveira EDB https://www.enterprisedb.com/