Re: Extra files in "base" dir not seen in relfilenodes - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Extra files in "base" dir not seen in relfilenodes
Date
Msg-id 20180117172301.spk23j2tj6pq3qdo@alvherre.pgsql
Whole thread Raw
In response to Re: Extra files in "base" dir not seen in relfilenodes  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Extra files in "base" dir not seen in relfilenodes
List pgsql-general
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


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: ERROR: unexpected chunk number 0 (expected 1) for toast value 76753264 in pg_toast_10920100
Next
From: Tom Lane
Date:
Subject: Re: Extra files in "base" dir not seen in relfilenodes