Re: How to bulk load a schema using JDBC multiple times?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Olarte <olarte(dot)andres(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: How to bulk load a schema using JDBC multiple times?
Date: 2005-10-16 03:40:42
Message-ID: 4498.1129434042@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Andres Olarte <olarte(dot)andres(at)gmail(dot)com> 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Alberto 2005-10-16 13:43:55 unsuscribe
Previous Message Andres Olarte 2005-10-15 23:08:04 How to bulk load a schema using JDBC multiple times?