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

Re: Database size

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Database size
Date: 2007-06-15 04:58:06
Message-ID: 20070615045806.GA14492@a-kretschmer.de (view raw or flat)
Thread:
Lists: pgsql-performance
am  Fri, dem 08.06.2007, um  1:22:14 -0700 mailte choksi folgendes:
> Hi all,
> 
> I had a database which uses to hold some 50 Mill records and disk
> space used was 103 GB. I deleted around 34 Mill records but still the
> disk size is same. Can some on please shed some light on this.

DELETE only mark rows as deleted, if you need the space you need a
VACUUM FULL.

Read more: http://www.postgresql.org/docs/current/static/sql-vacuum.html


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

In response to

pgsql-performance by date

Next:From: Andreas KostyrkaDate: 2007-06-15 05:21:58
Subject: Re: Replication
Previous:From: Joshua D. DrakeDate: 2007-06-15 02:37:07
Subject: Re: Replication

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