From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
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 12:35:43 -0500
Message-ID: <9188.1516210543@sss.pgh.pa.us> (raw)
In-Reply-To: <20180117172301.spk23j2tj6pq3qdo@alvherre.pgsql>
References: <20180117172301.spk23j2tj6pq3qdo@alvherre.pgsql>
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> 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.
Even if there are any such entries, surely they ought to be clean by
now and thus not a hazard. Not that a manual "CHECKPOINT" might not
be a good idea.
regards, tom lane
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: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, daniel@fdr.io
Subject: Re: Extra files in "base" dir not seen in relfilenodes
In-Reply-To: <9188.1516210543@sss.pgh.pa.us>
References: <20180117172301.spk23j2tj6pq3qdo@alvherre.pgsql> <9188.1516210543@sss.pgh.pa.us>
* 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