pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Paul van der Linden <paul.doskabouter@gmail.com>
Cc: pgsql-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: Safe to delete files?
Date: Sat, 13 Apr 2019 07:24:45 -0700
Message-ID: <8456979b-259a-787b-c08e-933bbefba9cf@aklaver.com> (raw)
In-Reply-To: <CAEC-EqCWQuNeCKAFzN=Vgw7g4EKQWowqcwd1wFSXR6-Pe_8ThQ@mail.gmail.com>
References: <CAEC-EqArqS3v3DBU9GwaS-5_6RnyxHS-5QH0r-Y-0=dY+LiA2w@mail.gmail.com>
	<5c1fffd2-6fbe-a083-be90-8a69ee343318@aklaver.com>
	<CAEC-EqCWQuNeCKAFzN=Vgw7g4EKQWowqcwd1wFSXR6-Pe_8ThQ@mail.gmail.com>

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





view thread (6+ messages)  latest in thread

Message-ID: <8456979b-259a-787b-c08e-933bbefba9cf@aklaver.com>
Permalink:  ../8456979b-259a-787b-c08e-933bbefba9cf@aklaver.com/
Also on:    postgresql.org/message-id/8456979b-259a-787b-c08e-933bbefba9cf@aklaver.com

 · 

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: adrian.klaver@aklaver.com, paul.doskabouter@gmail.com, ronljohnsonjr@gmail.com
  Subject: Re: Safe to delete files?
  In-Reply-To: <8456979b-259a-787b-c08e-933bbefba9cf@aklaver.com>
  References: <CAEC-EqArqS3v3DBU9GwaS-5_6RnyxHS-5QH0r-Y-0=dY+LiA2w@mail.gmail.com> <5c1fffd2-6fbe-a083-be90-8a69ee343318@aklaver.com> <CAEC-EqCWQuNeCKAFzN=Vgw7g4EKQWowqcwd1wFSXR6-Pe_8ThQ@mail.gmail.com> <8456979b-259a-787b-c08e-933bbefba9cf@aklaver.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