Tables grow in size when issuing UPDATEs! Why?? - Mailing list pgsql-general

From Daniel ?erud
Subject Tables grow in size when issuing UPDATEs! Why??
Date
Msg-id 985807393.141zilch@home.se
Whole thread Raw
Responses Re: Tables grow in size when issuing UPDATEs! Why??  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-general
Hi,
I have noticed a strange thing when dealing with postgreSQL.

Foreword: this is all about postgres tables increasing in
size extremely fast when doing updates. My sainness is
decreasing in approximatly the same speed. Please look.

When I do this:

* create database foo
* create table test

CREATE TABLE test (
    foo    int4
);

and make, for example, 20 inserts into this. Arbitrary data.

Then, I make in another terminal: (user with permission)
cd /var/lib/postgres/data/base/foo

then,
watch -n 1 'ls -al test'

On my system it is now 8k big.

then (a couple of times),
update test set foo=5;

10 times is enough for it to get 16k big. I realised that it
increases in size EXTREMELY fast when only UDPATing. I find
this strange, as I update timestamp in my real database
often and in 5 minutes it is 2 megabytes big and containing
only 18 rows! (NO BULLSHIT!!)

Please help me with this I am quite desperate...

Daniel Åkerud




pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: undefined symbol in create new function
Next
From: Ron Peterson
Date:
Subject: Re: how to load a sql-file????