Re: big database with very small dump !?

From: Vlad Kosilov <vkosilov(at)contigo(dot)com>
To: Joao Ferreira gmail <joao(dot)miguel(dot)c(dot)ferreira(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: big database with very small dump !?
Date: 2008-08-11 19:43:45
Message-ID: 48A09671.80708@contigo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'd do
du -sh /var/pgsql/data/base
rather then /var/pgsql/data
depending on how your pgsql server logging is setup, there are other
folders and/or files that might take considerable disk space under
./data/ you may want to exclude those. I find this query useful for
something like this as well:

select datname,pg_size_pretty(pg_database_size(oid)) from pg_database ;

V.

Joao Ferreira gmail wrote:
> Hello all,
>
> I'm finding it very strange that my pg takes 9Giga on disk but
> pg_dumpall produces a 250Mega dump. 'VACUUM FULL' was executed
> yesterday.
>
> Is this normal ? Should I be worried ?
>
>
> details bellow:
> ------------------------------------------
> # pg_dumpall --oids --clean > pg_dumpall.sql
> # ls -lh
> total 232M
> -rw-r--r-- 1 postgres postgres 231M Aug 11 15:46
> pg_dumpall.sql
> # du -sh /var/pgsql/data/
> 9.4G /var/pgsql/data
> ------------------------------------------
>
>
> thx
> joao
>
>
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Richardson 2008-08-11 20:01:57 Can I search for text in a function?
Previous Message Lucas Felix 2008-08-11 19:18:29 Re: psqlodbc on Vista Ultimate 64