Postgres schema comparison. - Mailing list pgsql-admin

From Stef
Subject Postgres schema comparison.
Date
Msg-id 20050307113312.2200b65c@svb.ucs.co.za
Whole thread Raw
Responses Re: [SQL] Postgres schema comparison.  (Markus Schaber <schabi@logix-tt.com>)
Re: Postgres schema comparison.  (John DeSoi <desoi@pgedit.com>)
Re: Postgres schema comparison.  (Matteo Beccati <php@beccati.com>)
List pgsql-admin
Hi all,

I've got a master database with many other databases that
all have (or is supposed to have) the same exact same schema
as the master database (the master database is basically an empty
template database containing the schema definition).

The problem is that none of the schemas actually match the master schema.
e.g. missing columns, columns not in the correct order (attnum), missing indexes
and primary keys, and in severe cases, missing sequences and tables.

I have the wonderful job of re-synch'ing  all the schemas out there not
conforming to the master. I've looked everywhere for something that
will help doing this. I'm specifically looking for a way to do a sumcheck
or something similar on tables and/or schema as a whole to be able to
do a table comparison with the master database.

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.

TIA
Kind Regards
Stefan

pgsql-admin by date:

Previous
From: Miroslav Šulc
Date:
Subject: Re: how to install pg 8 in windows fat32 partition
Next
From: Radtchenko Igor
Date:
Subject: Re: Build from file syntax troublem (part II).