pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Olarte <olarte.andres@gmail.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: How to bulk load a schema using JDBC multiple times?
Date: Wed, 19 Oct 2005 10:00:44 -0600
Message-ID: <3fccaa690510190900u3f2f97afle989609094b34725@mail.gmail.com> (raw)
In-Reply-To: <435623340200002500000116@gwmta.wicourts.gov>
References: <435623340200002500000116@gwmta.wicourts.gov>

That's exactly what I need !

That's so easy I never thought it was useful for my situation, I was
looking for a complex way :(

Why do thing the easy way, if they can be done the hard way?

Thanks a lot !

On 10/19/05, Kevin Grittner <Kevin.Grittner@wicourts.gov> wrote:
> http://www.postgresql.org/docs/8.0/interactive/manage-ag-templatedbs.html
>
> >>> Andres Olarte <olarte.andres@gmail.com>  >>>
> 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 <Kevin.Grittner@wicourts.gov> wrote:
> > Have you considered having your test suite create a template
> > database, and using it to drop and create the test database?
> >
> > >>> Andres Olarte <olarte.andres@gmail.com>  >>>
> > 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
> >
> >
>
>



view thread (6+ messages)

Message-ID: <3fccaa690510190900u3f2f97afle989609094b34725@mail.gmail.com>
Permalink:  ../3fccaa690510190900u3f2f97afle989609094b34725@mail.gmail.com/
Also on:    postgresql.org/message-id/3fccaa690510190900u3f2f97afle989609094b34725@mail.gmail.com

 · 

reply

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: olarte.andres@gmail.com, Kevin.Grittner@wicourts.gov
  Subject: Re: How to bulk load a schema using JDBC multiple times?
  In-Reply-To: <3fccaa690510190900u3f2f97afle989609094b34725@mail.gmail.com>
  References: <435623340200002500000116@gwmta.wicourts.gov> <3fccaa690510190900u3f2f97afle989609094b34725@mail.gmail.com>

* 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