Unbounded (Possibly) Database Size Increase - Test Case - Mailing list pgsql-hackers

From Mark kirkwood
Subject Unbounded (Possibly) Database Size Increase - Test Case
Date
Msg-id 1020752452.1498.44.camel@spikey.slithery.org
Whole thread Raw
Responses Re: Unbounded (Possibly) Database Size Increase - Test Case  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
There has been a discussion on the general list about this area. One of
the members produced a test case for demonstrating rapid size increase.

I decided to see if I could induce similar behaviour with a more
(seemingly) benign example.

I tried this :

1) Create a table and load 100000 rows (with a primary key)
2) Run several threads update 1 row and commit (loop continously with a
rest every 100 updates or so)
3) Run 1 thread that (lazy) vacuums (every 3 minutes or so)

I ran 10 threads in 2) and saw my database grow from the initial size of
150M by about 1G per hour (I stopped my test after 5 hours @ 4.5G).

The table concerned uses a large text field... it might be instructive
to see if this is central to producing this growth (I will see if a more
conventional table design can exhibit this behaviour if anyone is keen
to know).

For those interested the test case I used can be found here :

http://homepages.slingshot.co.nz/~markir/tar/test/spin.tar.gz

regards

Mark




pgsql-hackers by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: Number of attributes in HeapTupleHeader
Next
From: "Nigel J. Andrews"
Date:
Subject: Re: Schemas: status report, call for developers