Re: [SQL] Postgres schema comparison. - Mailing list pgsql-admin

From Stef
Subject Re: [SQL] Postgres schema comparison.
Date
Msg-id 20050307145444.459e54fe@svb.ucs.co.za
Whole thread Raw
In response to Re: [SQL] Postgres schema comparison.  (Markus Schaber <schabi@logix-tt.com>)
Responses Re: [SQL] Postgres schema comparison.  (Markus Schaber <schabi@logix-tt.com>)
Re: [SQL] Postgres schema comparison.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
Markus Schaber mentioned :
=> 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

Thanks a lot!

=> 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.

I've tested something similar, that seems to work ok for me for now :
pg_dump -s -t [TABLE] [DBNAME] | grep -v "^--" | md5sum

The problem I have with this, is that I have to run the command per table,
and seeing that I have over 500 tables in each database, this takes quite a
long time.

I'll test some of the above pgdiffs, and see if either can do it better.

Kind Regards
Stefan

pgsql-admin by date:

Previous
From: John DeSoi
Date:
Subject: Re: Postgres schema comparison.
Next
From: Richard_D_Levine@raytheon.com
Date:
Subject: Re: [SQL] Postgres schema comparison.