Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 693F2632256 for ; Sun, 8 Nov 2009 23:59:03 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 66475-08 for ; Mon, 9 Nov 2009 03:58:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mail.postgresql.org (Postfix) with ESMTP id 156B3630EAD for ; Sun, 8 Nov 2009 23:58:51 -0400 (AST) Received: by bwz5 with SMTP id 5so3163531bwz.3 for ; Sun, 08 Nov 2009 19:58:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=sO1TiGLO3AVyk4Cd62YXJXBti+IDqhF2A2phoXjSsAY=; b=izaSWMUm2Tbm+ZpF1dtE25ZbZEAHyYpo9B3mPFsgfW1tTP3Be0jPT8EnA0qnBFsAqb VVwc+obK6x1NA4C3pwNDQM28TsLY01ne7Jl2rG2aZwAdkdbas0f0Nvzc3pFyD6I4FSYi /RBbQ8EdsDhHQzjs0yS1T73MTeu5eruoZwGhE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=X8ItrRAEuxFJFNbxwYuBV2QleqaoAYQGpH/CLRJ0DK1yBxzweWaziBl1fNDjHs/8iG eJAz14lbexxcp5V2LmnFre4pCex4iG7PKg46GVuhkEh+kBpXpv1hvkA6JppdrlTXmvpZ aDkpL+zDPw0jQLpWRD1n5w4ZR/Fu2e2ked44w= MIME-Version: 1.0 Received: by 10.239.169.18 with SMTP id m18mr582391hbe.200.1257739129538; Sun, 08 Nov 2009 19:58:49 -0800 (PST) In-Reply-To: <009601ca6030$0e731440$2b593cc0$@com> References: <008801ca6021$c1cc7630$45656290$@com> <18869.1257650960@sss.pgh.pa.us> <009601ca6030$0e731440$2b593cc0$@com> Date: Sun, 8 Nov 2009 22:58:49 -0500 Message-ID: <603c8f070911081958sbac9712k15f50b80e5419d3c@mail.gmail.com> Subject: Re: CREATE TABLE slowing down significantly over time From: Robert Haas To: Aris Samad-Yahaya Cc: Tom Lane , pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200911/85 X-Sequence-Number: 36253 On Sat, Nov 7, 2009 at 11:58 PM, Aris Samad-Yahaya wrote: > We vacuum analyze nightly, and vacuum normally ad-hoc (but we're going to > schedule this weekly moving forward). > > Interesting pointer about system catalog bloat. I tried to vacuum full the > system catalog tables (pg_*), and the performance for creating a single > table manually improved dramatically (back to what it used to be), but as > soon as I created the next schema, the performance went back down to the > same level. > > So there's a clue there somewhere. Next I will try to vacuum full the entire > database. And maybe REINDEX, too. ...Robert