From: Stef <svb@ucs.co.za>
To: Markus Schaber <schabi@logix-tt.com>
Cc: pgsql-ADMIN@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Postgres schema comparison.
Date: Mon, 7 Mar 2005 14:54:44 +0200
Message-ID: <20050307145444.459e54fe@svb.ucs.co.za> (raw)
In-Reply-To: <422C42B7.1030509@logix-tt.com>
References: <20050307113312.2200b65c@svb.ucs.co.za>
<422C42B7.1030509@logix-tt.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: svb@ucs.co.za, schabi@logix-tt.com, pgsql-ADMIN@postgresql.org
Subject: Re: [SQL] Postgres schema comparison.
In-Reply-To: <20050307145444.459e54fe@svb.ucs.co.za>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox