pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Benjamin Krajmalnik <kraj@illumen.com>
To: pgsql-admin@postgresql.org
Subject: Unexplained growth of tables
Date: Sun, 23 Jul 2006 04:56:03 -0600
Message-ID: <BF337097BDD9D849A2F4B818DDB2798702949D@stash.stackdump.local> (raw)

This is subsequent to the previous issue which I am expperiencing.
In my monitoring application, I have a few tables which contain few rows
but are constantly pounded with updates.

These tables are growing at very high rates.  For example, a table with
less than 4K rows, which when reloaded was about 8 Mb, is now 1.4GB!  As
these tables grow, the performance of the application - which only looks
at these previously relativele small tables - is exremely slow.  The
huge tables are only used to calculate some statistical values on a
nightly basis.

I took another table which just started growing and ran analyze on it.
This is the result:


INFO:  analyzing "public.tblkstests"
INFO:  "tblkstests": scanned 3000 of 81837 pages, containing 109 live
rows and 10512 dead rows; 109 rows in sample, 2973 estimated total rows

Total query runtime: 52702 ms.

The actual number of physical rows in this table is 3404.  Row width is
361.  Table size = 639 MB.
What can be causing this growth?  Not vacuuming often enough? I hav
pg_autovacuum running every 60 seconds.  These tables have 10-15
insert/update statements per second.

Any assistance or guidance will be deeply appreciated.  I am pulling
hairs on this one.
> 
>
> 



view thread (7+ messages)  latest in thread

Message-ID: <BF337097BDD9D849A2F4B818DDB2798702949D@stash.stackdump.local>
Permalink:  ../BF337097BDD9D849A2F4B818DDB2798702949D@stash.stackdump.local/
Also on:    postgresql.org/message-id/BF337097BDD9D849A2F4B818DDB2798702949D@stash.stackdump.local

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: kraj@illumen.com
  Subject: Re: Unexplained growth of tables
  In-Reply-To: <BF337097BDD9D849A2F4B818DDB2798702949D@stash.stackdump.local>
  References: <BF337097BDD9D849A2F4B818DDB2798702949D@stash.stackdump.local>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox