Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C422337BA30 for ; Mon, 29 Sep 2008 06:50:29 -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 86166-03 for ; Mon, 29 Sep 2008 06:50:23 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by postgresql.org (Postfix) with ESMTP id 6430E37BA28 for ; Mon, 29 Sep 2008 06:50:22 -0300 (ADT) Received: by ey-out-2122.google.com with SMTP id 6so502928eyi.61 for ; Mon, 29 Sep 2008 02:50:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=84ZHyYCKVpUxBLtTf0NgcH5E2mgfHLBmg5FVB2qQYqA=; b=gnjzkmhncRv0nxEnlXNXfj9QrEWjngLlj0+9oSoav7DRTcfbtlWKQoazvA6Pfln6vc mhFm4nhMbiOVIYFCNKtD/Nzla3eh0v14wKlj9sh0Tnd0Q3Q02535DO7MNSh595EXjnwW DZqMlSWV/7WDw1Dfd/tjnpH61xgWlHkwtMVrc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=gTYYxj1kL8Jv4pcRTRe4PzJ4MoIhYh8QS+laRPMr1LVaqoFTkLx+SAH4djTS0A55pT jUXsDWefzcF9QE4uBEaubk81ECksJC5ZSzfiZHuUh8/3PsIyz5UtsF4UoBMzk6UONzCz qyI0Lr+hFqY3OzIfS7gp7DL5drKS99/7ByD8A= Received: by 10.210.52.9 with SMTP id z9mr5987267ebz.39.1222681820037; Mon, 29 Sep 2008 02:50:20 -0700 (PDT) Received: by 10.210.43.4 with HTTP; Mon, 29 Sep 2008 02:50:20 -0700 (PDT) Message-ID: Date: Mon, 29 Sep 2008 11:50:20 +0200 From: "Peter Kovacs" To: pgsql-admin@postgresql.org Subject: Re: Do we need vacuuming when tables are regularly dropped? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: 91a78e1971e0fdc4 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/328 X-Sequence-Number: 30421 PS: PGSQL version is: 8.2.7. (BTW, which catalog view contains the back-end version number?) On Mon, Sep 29, 2008 at 11:37 AM, Peter Kovacs wrote: > Hi, > > 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. > > I understand that vacuuming solves performance problems related to > "holes" in data files created as a result of tables being updated. Do > I understand correctly that if tables are dropped and recreated at the > beginning of each test case, holes in data files are reclaimed, so > there is no need for vacuuming from a performance perspective? > > I will double check whether the problematic test cases do indeed > always drop their tables, but assuming they do, are there any factors > in the database (apart from table updates) that can cause a linear > slow-down with repetitive tasks? > > Thanks > Peter >