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 4456CDA006 for ; Sun, 16 Oct 2005 00:40:54 -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 16908-10 for ; Sun, 16 Oct 2005 03:40:47 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id CE663DA42C for ; Sun, 16 Oct 2005 00:40:46 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j9G3egEu004499; Sat, 15 Oct 2005 23:40:42 -0400 (EDT) To: Andres Olarte Cc: pgsql-jdbc@postgresql.org Subject: Re: How to bulk load a schema using JDBC multiple times? In-reply-to: <3fccaa690510151608t548547bcg56e2d1927689de03@mail.gmail.com> References: <3fccaa690510151608t548547bcg56e2d1927689de03@mail.gmail.com> Comments: In-reply-to Andres Olarte message dated "Sat, 15 Oct 2005 17:08:04 -0600" Date: Sat, 15 Oct 2005 23:40:42 -0400 Message-ID: <4498.1129434042@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200510/69 X-Sequence-Number: 14000 Andres Olarte writes: > 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. Sounds to me like you've been neglecting to vacuum the system catalogs. regards, tom lane