Re: Safe to delete files? - Mailing list pgsql-general

From Paul van der Linden
Subject Re: Safe to delete files?
Date
Msg-id CAEC-EqBVdM-jxZtrQ+MqwsD2pDy4UbF8PuaW-mESssmxbmwY9g@mail.gmail.com
Whole thread Raw
In response to Re: Safe to delete files?  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
I did it in pgadmin, without begin commit.


On Sat, Apr 13, 2019 at 4:24 PM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 4/13/19 7:10 AM, Paul van der Linden wrote:
> It was just 99 files of 1GB each for each id, and no I didn't vacuum.
> I did see disk usage dropping quite a lot after dropping those tables
> though, so I expected postgres to delete all unneccesary files for all
> the tables.
>
> However when checking just now I saw that the files I was referring to
> were indeed deleted somehow (don't have an autovacuum running).
> So not sure how or why, but my problem is solved

Did you DROP the tables in a transaction and look at the the directory
previously before you issued COMMIT?


--
Adrian Klaver
adrian.klaver@aklaver.com

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Safe to delete files?
Next
From: "Schneider, Jeremy"
Date:
Subject: Re: Trigger when user logs in