From: John DeSoi <desoi@pgedit.com>
To: Stef <svb@ucs.co.za>
Cc: pgsql-ADMIN@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: Postgres schema comparison.
Date: Mon, 7 Mar 2005 07:39:30 -0500
Message-ID: <F393FF18-8F05-11D9-A12B-000A95B03262@pgedit.com> (raw)
In-Reply-To: <20050307113312.2200b65c@svb.ucs.co.za>
References: <20050307113312.2200b65c@svb.ucs.co.za>
On Mar 7, 2005, at 4:33 AM, Stef wrote:
> 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.
>
Develop a function that builds a string describing the tables/schemas
you want to compare. Then have your function return the md5 sum of the
string as the result. This will give you a 32 character value you can
use to determine if there is a mismatch.
John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: desoi@pgedit.com, svb@ucs.co.za, pgsql-ADMIN@postgresql.org
Subject: Re: Postgres schema comparison.
In-Reply-To: <F393FF18-8F05-11D9-A12B-000A95B03262@pgedit.com>
References: <20050307113312.2200b65c@svb.ucs.co.za> <F393FF18-8F05-11D9-A12B-000A95B03262@pgedit.com>
* 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