Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 166C26333BD for ; Mon, 28 Dec 2009 19:58:16 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 85215-05 for ; Mon, 28 Dec 2009 23:57:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id 5D4A96330C4 for ; Mon, 28 Dec 2009 19:58:05 -0400 (AST) Received: from list by lo.gmane.org with local (Exim 4.50) id 1NPPTN-0002JU-Ib for pgsql-performance@postgresql.org; Tue, 29 Dec 2009 00:58:01 +0100 Received: from ppp-93-104-28-245.dynamic.mnet-online.de ([93.104.28.245]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Dec 2009 00:58:01 +0100 Received: from spam_eater by ppp-93-104-28-245.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Dec 2009 00:58:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-performance@postgresql.org From: Thomas Kellerer Subject: Re: 8.4.1 ubuntu karmic slow createdb Date: Tue, 29 Dec 2009 00:57:42 +0100 Lines: 14 Message-ID: References: <4427a97a0912101235x3ade510blcc00d5ce9883c6b6@mail.gmail.com> <4427a97a0912101401kb29e1a5ic5424d6d0b7efe62@mail.gmail.com> <200912102309.04057.andres@anarazel.de> <1260554319.2611.10.camel@jd-desktop.unknown.charter.com> <1260564610.2611.41.camel@jd-desktop.unknown.charter.com> <4B22CA3A.1040909@2ndquadrant.com> <4427a97a0912111452m35552852ub7c3fe30f8191849@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-93-104-28-245.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: <4427a97a0912111452m35552852ub7c3fe30f8191849@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.595 tagged_above=-10 required=5 tests=AWL=-0.410, BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 200912/250 X-Sequence-Number: 36864 Michael Clemmons wrote on 11.12.2009 23:52: > Thanks all this has been a good help. > I don't have control(or easy control) over unit tests creating/deleting > databases since Im using the django framework for this job. Createdb > takes 12secs on my system(9.10 pg8.4 and ext4) which is impossibly slow > for running 200unittests. I wonder if you could simply create one database, and then a new schema for each of the tests. After creating the schema you could alter the search_path for the "unit test user" and it would look like a completely new database. Thomas