From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Olarte <olarte.andres@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: How to bulk load a schema using JDBC multiple times?
Date: Sat, 15 Oct 2005 23:40:42 -0400
Message-ID: <4498.1129434042@sss.pgh.pa.us> (raw)
In-Reply-To: <3fccaa690510151608t548547bcg56e2d1927689de03@mail.gmail.com>
References: <3fccaa690510151608t548547bcg56e2d1927689de03@mail.gmail.com>
Andres Olarte <olarte.andres@gmail.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, olarte.andres@gmail.com
Subject: Re: How to bulk load a schema using JDBC multiple times?
In-Reply-To: <4498.1129434042@sss.pgh.pa.us>
References: <3fccaa690510151608t548547bcg56e2d1927689de03@mail.gmail.com> <4498.1129434042@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox