Re: [GENERAL] Difference in DB size with dump and pg_database_size

2011-07-05 Thread Tomáš Vondra
> On Tue, Jul 5, 2011 at 10:38, Condor wrote: >> Hello, >> any one can explain me why I have difference between db size when I dump >> db, >> I see it's 5G and when I run SELECT >> pg_size_pretty(pg_database_size('somedatabase')) As fulldbsize; on my DB >> postgresql return: 10 GB >> >> I run vacu

Re: [GENERAL] Difference in DB size with dump and pg_database_size

2011-07-05 Thread Condor
On Tue, 5 Jul 2011 10:43:38 +0200, Magnus Hagander wrote: On Tue, Jul 5, 2011 at 10:38, Condor wrote: Hello, any one can explain me why I have difference between db size when I dump db, I see it's 5G and when I run SELECT pg_size_pretty(pg_database_size('somedatabase')) As fulldbsize; on my

Re: [GENERAL] Difference in DB size with dump and pg_database_size

2011-07-05 Thread Magnus Hagander
On Tue, Jul 5, 2011 at 10:38, Condor wrote: > Hello, > any one can explain me why I have difference between db size when I dump db, > I see it's 5G and when I run SELECT > pg_size_pretty(pg_database_size('somedatabase')) As fulldbsize; on my DB > postgresql return: 10 GB > > I run vacuum on db eve

[GENERAL] Difference in DB size with dump and pg_database_size

2011-07-05 Thread Condor
Hello, any one can explain me why I have difference between db size when I dump db, I see it's 5G and when I run SELECT pg_size_pretty(pg_database_size('somedatabase')) As fulldbsize; on my DB postgresql return: 10 GB I run vacuum on db every night. Why is that huge difference in size ? -- R