Re: [SQL] Postgres schema comparison.

From: Markus Schaber <schabi(at)logix-tt(dot)com>
To: Stef <svb(at)ucs(dot)co(dot)za>
Cc: pgsql-ADMIN(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Postgres schema comparison.
Date: 2005-03-07 12:01:59
Message-ID: 422C42B7.1030509@logix-tt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

Hi, Stef,

Stef schrieb:

> It will be a bonus to pick up exactly what is missing, but for now, just identifying
> differences is what I want to achieve. I'm using postgres 7.3 mostly, but
> I may want to use this for 7.4 and 8.0 databases as well.
>
> Has anybody got some suggestions of what I can do or use to do this.

There are (at least) two independently developed pgdiff applications,
they can be found at:

http://pgdiff.sourceforge.net/

http://gborg.postgresql.org/project/pgdiff/projdisplay.php

I did not try the first one, but the latter one worked on some of my
datas, but fails on others. I filed a bug report some time ago, but got
no answer, so I'm afraid this tool currently is unmaintained:
http://gborg.postgresql.org/project/pgdiff/bugs/bugupdate.php?895

But maybe a pg_dump --schema-only on all the databases, and then
manually diffing the files may already fulfil your needs.

Markus

--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message JOURDAN Nadia 2005-03-07 12:35:34 Aide sur Postgres sous Linux
Previous Message Radtchenko Igor 2005-03-07 10:21:47 Re: Build from file syntax troublem (part II).

Browse pgsql-sql by date

  From Date Subject
Next Message Gary Stainburn 2005-03-07 12:28:39 simple update from select ??
Previous Message Stef 2005-03-07 09:33:12 Postgres schema comparison.