The postgres database -- necessary? If so, how to cleanse?

From: René Fournier <m5(at)renefournier(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: The postgres database -- necessary? If so, how to cleanse?
Date: 2011-10-26 21:59:23
Message-ID: 1EEE5229-AEB4-453B-B964-F5C78A09CCC5@renefournier.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I accidentally imported lots of data into the postgres database via something like:

psql -U postgres -q -f super_massive_database_dump.sql

Now, although I've manually dropped all the tables -- and \d+ shows nothing -- there are still various views, functions, etc that must account for a lot of disk space. From \l+, I see that postgres still occupies 65GB. So my question is, what's the easiest way to reclaim that space? Can I drop postgres and just recreate it? Or is it magical like unicorns and unwilling to be dropped? Or, how can I just clear out all the crap I imported?

Thanks!

…Rene

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2011-10-26 22:10:34 Re: The postgres database -- necessary? If so, how to cleanse?
Previous Message Michael Glaesemann 2011-10-26 21:11:33 Re: Saving score of 3 players into a table