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 1lbLhY-0001lL-UB for pgsql-general@arkaria.postgresql.org; Tue, 27 Apr 2021 11:16:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lbLhW-0005C4-Vg for pgsql-general@arkaria.postgresql.org; Tue, 27 Apr 2021 11:16:22 +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 1lbLhW-0005Bb-Nq for pgsql-general@lists.postgresql.org; Tue, 27 Apr 2021 11:16:22 +0000 Received: from mxh02aws140.mxout.inova.com.br ([34.196.109.140] helo=mxhero01.a.inova.com.br) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbLhQ-0000Fs-Ow for pgsql-general@lists.postgresql.org; Tue, 27 Apr 2021 11:16:21 +0000 Received: from MXHERO01.A.INOVA.COM.BR (localhost [127.0.0.1]) by mxhero01.a.inova.com.br (Postfix) with ESMTP id 5AC0826031A for ; Tue, 27 Apr 2021 11:16:13 +0000 (UTC) Received: from corpmoutpolicyd01.a.inova.com.br (ip-10-0-1-88.ec2.internal [10.0.1.88]) by mxhero02.a.inova.com.br (Postfix) with ESMTP; Tue, 27 Apr 2021 11:16:13 +0000 (UTC) Received: from corpmoutpolicyd01.a.inova.com.br (localhost [127.0.0.1]) by corpmoutpolicyd01.a.inova.com.br (Postfix) with ESMTP id 3B1AB220864; Tue, 27 Apr 2021 08:16:09 -0300 (BRT) Received: from corpmout01.a.inova.com.br (ip-10-0-1-125.ec2.internal [10.0.1.125]) by corpmoutpolicyd01.a.inova.com.br (Postfix) with ESMTP id 2D42EC3F53; Tue, 27 Apr 2021 08:16:09 -0300 (BRT) Received: from corpmbox02.a.inova.com.br (ip-10-0-4-158.ec2.internal [10.0.4.158]) by corpmout01.a.inova.com.br (Postfix) with ESMTP; Tue, 27 Apr 2021 08:16:09 -0300 (-03) Date: Tue, 27 Apr 2021 08:16:08 -0300 (BRT) From: luis.roberto@siscobra.com.br To: Magnus Hagander Cc: Laurenz Albe , Alvaro Herrera , pgsql-general Message-ID: <2003742718.121826.1619522168979.JavaMail.zimbra@siscobra.com.br> In-Reply-To: References: <20210426204534.GA16381@alvherre.pgsql> <8fa46955e1516d15230fc59559db3eb7b8d066cd.camel@cybertec.at> Subject: Re: DB size MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.0.4.158] X-Mailer: Zimbra 8.8.15_GA_4018 (ZimbraWebClient - GC90 (Win)/8.8.15_GA_4007) Thread-Topic: DB size Thread-Index: sX3/KlSLZaicdOYUyY0/JSYHXhEICA== x-mxHero-Origin-Ip: /10.0.4.78:48314 X-mxHero-AttachmentBlock: rule=48;result=false List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ----- Mensagem original ----- > De: "Magnus Hagander" > Para: "Laurenz Albe" > Cc: "Alvaro Herrera" , "luis.roberto" , "pgsql-general" > > Enviadas: Ter=C3=A7a-feira, 27 de abril de 2021 4:05:42 > Assunto: Re: DB size > Yeah, you want to use pg_relation_filenode(oid) rather than looking > directly at relfilenode. >=20 > When compared to the filesystem, it's probably even easier to use > pg_relation_filepath(oid). >=20 > -- > Magnus Hagander > Me: https://www.hagander.net/ > Work: https://www.redpill-linpro.com/ Thanks all!=20 Looks like pg_orphaned is what I need! I'll use pg_relation_filepath too to= double check. Luis R. Weck=20