Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9904F37BD93 for ; Mon, 29 Sep 2008 09:16:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 28163-05 for ; Mon, 29 Sep 2008 09:16:26 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 0AAE337BA3A for ; Mon, 29 Sep 2008 09:16:25 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m8TCGNhI009816; Mon, 29 Sep 2008 08:16:23 -0400 (EDT) To: "Peter Kovacs" cc: pgsql-admin@postgresql.org Subject: Re: Do we need vacuuming when tables are regularly dropped? In-reply-to: References: Comments: In-reply-to "Peter Kovacs" message dated "Mon, 29 Sep 2008 11:37:36 +0200" Date: Mon, 29 Sep 2008 08:16:23 -0400 Message-ID: <9815.1222690583@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/330 X-Sequence-Number: 30423 "Peter Kovacs" writes: > We have a number of automated performance tests (to test our own code) > involving PostgreSQL. Test cases are supposed to drop and recreate > tables each time they run. > The problem is that some of the tests show a linear performance > degradation overtime. (We have data for three months back in the > past.) We have established that some element(s) of our test > environment must be the culprit for the degradation. As rebooting the > test machine didn't revert speeds to baselines recorded three months > ago, we have turned our attention to the database as the only element > of the environment which is persistent across reboots. Recreating the > entire PGSQL cluster did cause speeds to revert to baselines. What it sounds like to me is that you're not vacuuming the system catalogs, which are getting bloated with dead rows about all those dropped tables. regards, tom lane