X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 27F6AD9ADA for ; Tue, 18 Oct 2005 20:33:57 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 47785-06 for ; Tue, 18 Oct 2005 23:33:53 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by svr1.postgresql.org (Postfix) with ESMTP id 7E261D98DA for ; Tue, 18 Oct 2005 20:33:55 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i5so101884wra for ; Tue, 18 Oct 2005 16:33:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gRPNVePDDsAcqKBa2yhR0vub0/Z+cfX+Vv6iKc3/v25ptrGutCSD6KKdnL6gLUdN66GVlWWVYxFGgRoyM9RrBdWl65tgMnEwWZcpzr+2OHjNUD4ndNiOd0bz56CuAh5RzaQlDQbw6Fdldy5jm5TCGBlNIiZys93zbbOdqxjk2QU= Received: by 10.54.137.20 with SMTP id k20mr349357wrd; Tue, 18 Oct 2005 16:33:59 -0700 (PDT) Received: by 10.54.105.13 with HTTP; Tue, 18 Oct 2005 16:33:59 -0700 (PDT) Message-ID: <3fccaa690510181633t7fc02e2fh762e5362fb9f0973@mail.gmail.com> Date: Tue, 18 Oct 2005 17:33:59 -0600 From: Andres Olarte To: Kevin Grittner , pgsql-jdbc@postgresql.org Subject: Re: How to bulk load a schema using JDBC multiple times? In-Reply-To: <43552CE9020000250000010A@gwmta.wicourts.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43552CE9020000250000010A@gwmta.wicourts.gov> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.226 required=5 tests=[AWL=0.202, RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200510/84 X-Sequence-Number: 14015 Hi, Yes, but how? I tried to create a stored procedure with all of the commands. I tried creating a table in a special schema, storing the schema in that table, and executing commands off that table. They have all failed due to quote problems. Any other ideas? On 10/18/05, Kevin Grittner wrote: > Have you considered having your test suite create a template > database, and using it to drop and create the test database? > > >>> Andres Olarte >>> > Hi, > > I need to load and drop my schema multiple times during my unit tests. > This happens several thousand times per run of my test suite. I'm > loading the schema from the file that's generated by pg_dump, and it > works, but it's SLOW. My tests are taking more than 10 minutes now, > and most of the time is spent loading the schema. If there away to do > this faster? May be using a store procedure with the whole schema? > I've tried making such a procedure, but it doesn't work do to quoting > problems. Anybody have any ideas? Thanks > > Andres > >