pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Daniel Farina <daniel@fdr.io>
Cc: pgsql-general@postgresql.org
Subject: Re: Extra files in "base" dir not seen in relfilenodes
Date: Wed, 17 Jan 2018 14:23:01 -0300
Message-ID: <20180117172301.spk23j2tj6pq3qdo@alvherre.pgsql> (raw)
In-Reply-To: <1664.1516144703@sss.pgh.pa.us>

Tom Lane wrote:

> However, assuming you've gotten that detail right, then any file
> you can't match up with a relfilenode value must be an orphan you
> can just "rm".

Maybe look in pg_buffercache for entries referencing those files before
deleting.  It would be surprising to see any if no catalog points to
those files, but who knows ...  If you break checkpointing, you're not
going to be pleased.

If it turns out that a shared buffer exists for any of those files, what
would be a way to evict them without pain?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (6+ messages)  latest in thread

Message-ID: <20180117172301.spk23j2tj6pq3qdo@alvherre.pgsql>
Permalink:  ../20180117172301.spk23j2tj6pq3qdo@alvherre.pgsql/
Also on:    postgresql.org/message-id/20180117172301.spk23j2tj6pq3qdo@alvherre.pgsql

 · 

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: alvherre@alvh.no-ip.org, tgl@sss.pgh.pa.us, daniel@fdr.io
  Subject: Re: Extra files in "base" dir not seen in relfilenodes
  In-Reply-To: <20180117172301.spk23j2tj6pq3qdo@alvherre.pgsql>
  References: <1664.1516144703@sss.pgh.pa.us> <20180117172301.spk23j2tj6pq3qdo@alvherre.pgsql>

* 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