pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: luis.roberto@siscobra.com.br
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: DB size
Date: Tue, 27 Apr 2021 08:58:46 +0200
Message-ID: <8fa46955e1516d15230fc59559db3eb7b8d066cd.camel@cybertec.at> (raw)
In-Reply-To: <20210426204534.GA16381@alvherre.pgsql>
References: <20210426204534.GA16381@alvherre.pgsql>

On Mon, 2021-04-26 at 16:45 -0400, Alvaro Herrera wrote:
> I would guess that there are leftover files because of those crashes you
> mentioned.  You can probably look for files in the database subdir in
> the data directory that do not appear in the pg_class.relfilenode
> listing for the database.

Not all tables have their "relfilenode" set:

SELECT relfilenode FROM pg_class WHERE relname = 'pg_class';
 relfilenode 
═════════════
           0
(1 row)

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (9+ messages)  latest in thread

Message-ID: <8fa46955e1516d15230fc59559db3eb7b8d066cd.camel@cybertec.at>
Permalink:  ../8fa46955e1516d15230fc59559db3eb7b8d066cd.camel@cybertec.at/
Also on:    postgresql.org/message-id/8fa46955e1516d15230fc59559db3eb7b8d066cd.camel@cybertec.at

 · 

reply

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: laurenz.albe@cybertec.at, alvherre@alvh.no-ip.org, luis.roberto@siscobra.com.br
  Subject: Re: DB size
  In-Reply-To: <8fa46955e1516d15230fc59559db3eb7b8d066cd.camel@cybertec.at>
  References: <20210426204534.GA16381@alvherre.pgsql> <8fa46955e1516d15230fc59559db3eb7b8d066cd.camel@cybertec.at>

* 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