Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / March 2007

Tip: Looking for answers? Try searching our database.

Difference in schema

Thread view: 
EN - 14 Mar 2007 09:23 GMT
Hello.

I'm looking for software which might give me difference
between schema two databases in Postgresql.
The main purpose is catch difference between production and development db.

Thanks in advance
Regards
EN
Ian Wilson - 14 Mar 2007 11:36 GMT
> I'm looking for software which might give me difference
> between schema two databases in Postgresql.
> The main purpose is catch difference between production and development db.

Although I know nothing of Postgresql, I was going to make a sarcastic
response along the lines of

dbschema -d db1 > db1.schema
dbschema -d db2 > db2.schema
diff db1.schema db2.schema

And then I discovered http://www.thescripts.com/forum/thread420807.html
David Harper - 14 Mar 2007 21:00 GMT
> I'm looking for software which might give me difference
> between schema two databases in Postgresql.
> The main purpose is catch difference between production and development db.

It should be relatively easy to write a comparison tool yourself, using
the DatabaseMetaData.getTables and DatabaseMetaData.getColumns methods
to obtain detailed information about the structure of each schema.

David Harper
Cambridge, England
mhantula@gmail.com - 19 Mar 2007 02:01 GMT
Check out DB Solo (www.dbsolo.com), it does it for several DBMS
products including PostgreSQL.
The upcoming version also generates a schema synchronization script
for you.

MH

> Hello.
>
[quoted text clipped - 5 lines]
> Regards
> EN


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.