Re: Postgres schema comparison.

From: "Goulet, Dick" <DGoulet(at)vicr(dot)com>
To: "John DeSoi" <desoi(at)pgedit(dot)com>, "Stef" <svb(at)ucs(dot)co(dot)za>
Cc: <pgsql-ADMIN(at)postgresql(dot)org>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Postgres schema comparison.
Date: 2005-03-07 15:33:08
Message-ID: 4001DEAF7DF9BD498B58B45051FBEA6502422AB8@25exch1.vicorpower.vicr.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

My favorite for this task is WinSql available from
http://www.synametrics.com/SynametricsWebApp/WinSQL.jsp. It can compare
the structure and content of the two tables.

-----Original Message-----
From: John DeSoi [mailto:desoi(at)pgedit(dot)com]
Sent: Monday, March 07, 2005 7:40 AM
To: Stef
Cc: pgsql-ADMIN(at)postgresql(dot)org; pgsql-sql(at)postgresql(dot)org
Subject: Re: [ADMIN] Postgres schema comparison.

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

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Browse pgsql-admin by date

  From Date Subject
Next Message Gourish Singbal 2005-03-07 15:34:04 Backup procedure
Previous Message John DeSoi 2005-03-07 15:32:07 Re: Postgres schema comparison.

Browse pgsql-sql by date

  From Date Subject
Next Message Stef 2005-03-07 16:08:37 Re: [SOLVED] Postgres schema comparison.
Previous Message John DeSoi 2005-03-07 15:32:07 Re: Postgres schema comparison.