From: | Thomas Kellerer <spam_eater(at)gmx(dot)net> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Copying only incremental records to another DB.. |
Date: | 2009-07-24 12:30:01 |
Message-ID: | h4c9gh$4q6$1@ger.gmane.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Alban Hertroys, 24.07.2009 13:07:
> It would be nice if there were a tool that could do a diff between two
> dumps resulting in a new dump with just the statements necessary to
> apply the differences. I don't think there is such a tool yet though
> (some light Googling does bring up such a tool for sqllite).
> Implementing it does have a few challenges, changes to records with
> foreign keys for example.
You might want to have a look at my SQL Workbench/J
It has a command that can compare the data of two databases for differences and can write the necessary DML statements to update the target database to match the data from the source.
Details can be found here:
http://www.sql-workbench.net/manual/wb-commands.html#command-data-diff
As it does not compare two dumps, but the databases directly, tt requires that connections can be made to both databases at the same time (so it's not possible to do an "offline-diff")
Feel free to contact me if you have any questions (support email address is on the homepage).
Regards
Thomas
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Mead | 2009-07-24 14:09:48 | Re: Replication from Postgres to EDB |
Previous Message | Alban Hertroys | 2009-07-24 11:07:02 | Re: Copying only incremental records to another DB.. |