Re: Unexplained growth of tables
От | Christian Kratzer |
---|---|
Тема | Re: Unexplained growth of tables |
Дата | |
Msg-id | 20060723143850.P64773@vesihiisi.cksoft.de обсуждение исходный текст |
Ответ на | Unexplained growth of tables ("Benjamin Krajmalnik" <kraj@illumen.com>) |
Список | pgsql-admin |
Hi, On Sun, 23 Jul 2006, Benjamin Krajmalnik wrote: <snipp/> > 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. something might be stopping vacuum from reclaiming the dead rows. We had a similar situation with a DBD::Pg based perl script that was monitoring the database for new jobs to perform. The script started once, connceted to the db, prepared its statemens and then just slept waiting for notifies. We now have the script regularly exit and reopen a new db connection which magically allows vacuum to reclaim rows. Could be related to prepared staments and locks on system tables or something of that sort. I would recommend comparing the output of vacuum full with and without your application connected. Greetings Christian -- Christian Kratzer ck@cksoft.de CK Software GmbH http://www.cksoft.de/ Phone: +49 7452 889 135 Fax: +49 7452 889 136
В списке pgsql-admin по дате отправления: