By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,903 Members | 1,104 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,903 IT Pros & Developers. It's quick & easy.

Incremental Development

P: n/a
I am developing a java/postgresql application using ant and junit. I
want to deploy tested builds along with matching tables in
postgresqlwith test data in them.

What is the best way to deploy versions of the tables with test data to
postgresql to match a war file for each new build of the application?
thanks,
Phil
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Tue, 13 Jan 2004, Phil Campaigne wrote:
I am developing a java/postgresql application using ant and junit. I
want to deploy tested builds along with matching tables in
postgresqlwith test data in them.

What is the best way to deploy versions of the tables with test data to
postgresql to match a war file for each new build of the application?
thanks,
Phil


the best way I've found is to just use a pg_dump file of the database (I
usually put individual apps in their own database / schema for easy backup
and restore and such.)

If you can't run psql by shelling out, you can just execute each line of
the sql dump one at a time, inside a transaction block.
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.