From: | "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net> |
---|---|
To: | Feng Xue <feng(at)axe(dot)net(dot)au> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: a "huge" table with small rows and culumns |
Date: | 2000-12-18 22:32:33 |
Message-ID: | Pine.LNX.4.30.0012181730290.9979-100000@chapelperilous.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, 19 Dec 2000, Feng Xue wrote:
> In a particular table name "fred" there are only 50 rows and 13 columns. The column types are int,
> float, varchar, where
> varchar's size is restricted to 50. But its size of
> /usr/local/pgsql/data/base/The_Database_Name/fred is more than 20M, and it keeps growing while the
> rows number is still 50.
You need to run VACCUM on the table to 'compress' it -- when data is
deleted from a table, is is actually only marked as deleted and not used
any more, with the new row being used instead. Running the vacuum will
remove the data marked as deleted and shrink the table file size down. It
will also improve performance.
-- Brett
http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
((lambda (foo) (bar foo)) (baz))
From | Date | Subject | |
---|---|---|---|
Next Message | Feng Xue | 2000-12-18 22:55:40 | Re: a "huge" table with small rows and culumns |
Previous Message | Tom Lane | 2000-12-18 22:20:00 | Re: Are arrays broken in 7.0.3? |