From: luis.roberto@siscobra.com.br
To: Magnus Hagander <magnus@hagander.net>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: DB size
Date: Tue, 27 Apr 2021 08:16:08 -0300 (BRT)
Message-ID: <2003742718.121826.1619522168979.JavaMail.zimbra@siscobra.com.br> (raw)
In-Reply-To: <CABUevExvFtS5G3ehReoKqAs_xq5ehp_o0GC2rQrqYyq-p4vN-g@mail.gmail.com>
References: <20210426204534.GA16381@alvherre.pgsql>
<8fa46955e1516d15230fc59559db3eb7b8d066cd.camel@cybertec.at>
<CABUevExvFtS5G3ehReoKqAs_xq5ehp_o0GC2rQrqYyq-p4vN-g@mail.gmail.com>
----- Mensagem original -----
> De: "Magnus Hagander" <magnus@hagander.net>
> Para: "Laurenz Albe" <laurenz.albe@cybertec.at>
> Cc: "Alvaro Herrera" <alvherre@alvh.no-ip.org>, "luis.roberto" <luis.roberto@siscobra.com.br>, "pgsql-general"
> <pgsql-general@lists.postgresql.org>
> Enviadas: Terça-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.
>
> When compared to the filesystem, it's probably even easier to use
> pg_relation_filepath(oid).
>
> --
> Magnus Hagander
> Me: https://www.hagander.net/
> Work: https://www.redpill-linpro.com/
Thanks all!
Looks like pg_orphaned is what I need! I'll use pg_relation_filepath too to double check.
Luis R. Weck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: luis.roberto@siscobra.com.br, magnus@hagander.net, laurenz.albe@cybertec.at, alvherre@alvh.no-ip.org
Subject: Re: DB size
In-Reply-To: <2003742718.121826.1619522168979.JavaMail.zimbra@siscobra.com.br>
References: <20210426204534.GA16381@alvherre.pgsql> <8fa46955e1516d15230fc59559db3eb7b8d066cd.camel@cybertec.at> <CABUevExvFtS5G3ehReoKqAs_xq5ehp_o0GC2rQrqYyq-p4vN-g@mail.gmail.com> <2003742718.121826.1619522168979.JavaMail.zimbra@siscobra.com.br>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox