3

I have an instance of Postgresql that is 374GB!

It's the dbase for an Event Sentry Application, but since Event Sentry is just a monitoring tool, don't see how it can require this much data. There are hundreds of 1 Gig files in the default database folder. Any assistance on this one is greatly appreciated! Carl Postgresql_image

1
  • 1
    You can use the statements from the Postgres wiki to find the tables that take up the space: wiki.postgresql.org/wiki/Disk_Usage Commented Mar 15, 2016 at 18:55

1 Answer 1

4

Take a look at this operation called 'vacuum' in PostgreSQL:

http://www.postgresql.org/docs/9.5/static/routine-vacuuming.html

However, in some situations even vacuuming doesn't solve that much. In that case, the best to do is make a dump, recreate the database and restore it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.