Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 183966327A8 for ; Sun, 8 Nov 2009 00:58:19 -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 92675-09 for ; Sun, 8 Nov 2009 04:58:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtpauth19.prod.mesa1.secureserver.net (smtpauth19.prod.mesa1.secureserver.net [64.202.165.30]) by mail.postgresql.org (Postfix) with SMTP id 2D6C163268E for ; Sun, 8 Nov 2009 00:58:11 -0400 (AST) Received: (qmail 29217 invoked from network); 8 Nov 2009 04:58:09 -0000 Received: from unknown (12.110.105.2) by smtpauth19.prod.mesa1.secureserver.net (64.202.165.30) with ESMTP; 08 Nov 2009 04:58:09 -0000 From: "Aris Samad-Yahaya" To: "'Tom Lane'" Cc: References: <008801ca6021$c1cc7630$45656290$@com> <18869.1257650960@sss.pgh.pa.us> In-Reply-To: <18869.1257650960@sss.pgh.pa.us> Subject: Re: CREATE TABLE slowing down significantly over time Date: Sat, 7 Nov 2009 23:58:03 -0500 Message-ID: <009601ca6030$0e731440$2b593cc0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcpgI6pBBk9VV3d3QvifadOaCZk6wQAC/jiw Content-Language: en-us 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/83 X-Sequence-Number: 36251 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. -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Saturday, November 07, 2009 10:29 PM To: Aris Samad-Yahaya Cc: pgsql-performance@postgresql.org Subject: Re: [PERFORM] CREATE TABLE slowing down significantly over time "Aris Samad-Yahaya" writes: > I'm facing a problem where running a CREATE TABLE has slowed down > significantly over time. System catalog bloat maybe? What are your vacuuming practices? regards, tom lane