From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Safe to delete files?
Date: Fri, 12 Apr 2019 19:09:15 -0500
Message-ID: <31232131-bd95-eac3-aecb-c4fee717666f@gmail.com> (raw)
In-Reply-To: <CAEC-EqArqS3v3DBU9GwaS-5_6RnyxHS-5QH0r-Y-0=dY+LiA2w@mail.gmail.com>
References: <CAEC-EqArqS3v3DBU9GwaS-5_6RnyxHS-5QH0r-Y-0=dY+LiA2w@mail.gmail.com>
On 4/12/19 3:11 PM, Paul van der Linden wrote:
> Hi,
>
> For my process, I needed to drop all the tables in a tablespace except one
> which I truncated.
> After that I would have expected to have a couple of KB max in that
> folder, but there was about 200GB in it.
Did you vacuum afterwards?
>
> There were 2 sets of files (<id1>, <id1>.1 .. <id1>.99, and the same for id2).
> Tried the various options from
> https://blog.2ndquadrant.com/postgresql-filename-to-table/ and oid2name
> (with -i), to trace it back to a table but all came up empty.
>
> Now this folder has a bit of a history spanning several postgres versions
> and upgrades, and sometime in the past one of the upgrades went horribly
> wrong, so my first thought was that this was possibly some leftovers from
> that mishap, but the filetimes were a bit later than that.
> Also hard to tell because those tables are used as write-once, read-alot
> so could not base the last usage on filedate.
>
> Normally I probably would dare to risk deleting those files, but after the
> dropping and truncating, the 2 files without extension had the time of
> drop/truncate and were 0 bytes in length (unfortunately I didn't check the
> filesize before drop/truncating).
>
> Are there other options to see if these files are leftovers from previous
> stuff and not used by postgres (so i can safely delete them)?
>
> Postgres 11, just one used database on it (the other one being a postgis
> template), running on windows server 2012.
>
> In replies please use reply to all...
--
Angular momentum makes the world go 'round.
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: ronljohnsonjr@gmail.com
Subject: Re: Safe to delete files?
In-Reply-To: <31232131-bd95-eac3-aecb-c4fee717666f@gmail.com>
References: <CAEC-EqArqS3v3DBU9GwaS-5_6RnyxHS-5QH0r-Y-0=dY+LiA2w@mail.gmail.com> <31232131-bd95-eac3-aecb-c4fee717666f@gmail.com>
* 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