From: | Thomas Kellerer <spam_eater(at)gmx(dot)net> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: recommended schema diff tools? |
Date: | 2012-04-12 16:05:33 |
Message-ID: | jm6uga$ulr$1@dough.gmane.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Welty, Richard wrote on 12.04.2012 16:57:
> can anyone recommend an open source tool for diffing schemas?
>
> (it should go without saying that i'm looking for ddl to update
> production and QA DBs from development DBs, but i'll say it, just in
> case.)
You might want to have a look at SQL Workbench/J.
It has it's own "SQL command" for doing a diff on schema level.
http://www.sql-workbench.net/manual/compare-commands.html
The output is a (dbms independent) XML file, but XSLT templates to transform that into SQL are available:
http://www.sql-workbench.net/xslt.html
The XSTL might need some adjusting for your purposes though.
But you should put a controlled way of deploying schema changes into place.
Doing a diff of a developer DB isn't really the ideal approach.
We are quite happy using Liquibase for this purpose: http://liquibase.org/
Thomas
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Angelico | 2012-04-12 16:05:59 | Re: recommended schema diff tools? |
Previous Message | Thomas Kellerer | 2012-04-12 16:02:01 | Re: recommended schema diff tools? |