Skip site navigation (1) Skip section navigation (2)

Re: Less rows -> better performance?

From: "Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com>
To: "Andreas Hartmann" <andreas(at)apache(dot)org>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Less rows -> better performance?
Date: 2008-07-21 11:32:37
Message-ID: 1d4e0c10807210432v45c6272awb1ea13974747de54@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-performance
On Mon, Jul 21, 2008 at 1:25 PM, Andreas Hartmann <andreas(at)apache(dot)org> wrote:
> SELECT pg_database.datname,
> pg_size_pretty(pg_database_size(pg_database.datname)) AS size
> FROM pg_database where pg_database.datname = 'vvz_live_1';
>
>    datname    |  size
> ---------------+---------
>  vvz_live_1    | 2565 MB
>
> I wonder why the actual size is so much bigger than the data-only dump - is
> this because of index data etc.?

More probably because the database is totally bloated. Do you run
VACUUM regularly or did you set up autovacuum?

-- 
Guillaume

In response to

Responses

pgsql-performance by date

Next:From: Richard HuxtonDate: 2008-07-21 12:11:02
Subject: Re: Less rows -> better performance?
Previous:From: Andreas HartmannDate: 2008-07-21 11:25:30
Subject: Re: Less rows -> better performance?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group