| From: | John DeSoi <desoi(at)pgedit(dot)com> |
|---|---|
| To: | arnaulist(at)andromeiberica(dot)com |
| Cc: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: Schema synchronization |
| Date: | 2006-04-20 00:45:00 |
| Message-ID: | 2237D1DC-525A-4571-9F16-BC4E54D847D8@pgedit.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
On Apr 19, 2006, at 2:26 PM, Arnau wrote:
> I have several databases that I have to synchronize their
> schemas. I have been testing several programs like EMS PostgreSQL
> Comparer and Navicat PostgreSQL but none of them does all I need.
> Any advise about what is the best way to sync the schemas?
I think the best way is to do proper version control on files. After
initial version 1, create version 2 as a series of create table,
alter table, etc, statements to convert version 1 to version 2 and so
on. Changing databases independently with your favorite admin tool
and then trying to sync them up based on schema differences is
difficult. For example, I don't think there is a way for a comparison
program to know the difference between renaming a column and dropping
a column with the addition a new one of the same type. The semantics
of these two operations are very different.
John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Thusitha Kodikara | 2006-04-20 08:08:18 | Re: Different results when specifying DEFAULT values through |
| Previous Message | Tom Lane | 2006-04-19 23:45:43 | Re: dblink not working in FC5 (Solved) |