pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard_D_Levine@raytheon.com
To: John DeSoi <desoi@pgedit.com>
Cc: pgsql-ADMIN@postgresql.org, pgsql-sql@postgresql.org, pgsql-sql-owner@postgresql.org, Stef <svb@ucs.co.za>
Subject: Re: [SQL] Postgres schema comparison.
Date: Mon, 7 Mar 2005 08:03:43 -0500
Message-ID: <OFE329A02A.6AD7CF2E-ON05256FBD.0047B53E@ftw.us.ray.com> (raw)

Are you just synching the schemas, or do you also need to synch the data?

Rick


                                                                                                                                         
                      John DeSoi                                                                                                         
                      <desoi@pgedit.com>         To:       Stef <svb@ucs.co.za>                                                          
                      Sent by:                   cc:       pgsql-ADMIN@postgresql.org, pgsql-sql@postgresql.org                          
                      pgsql-sql-owner@pos        Subject:  Re: [SQL] [ADMIN] Postgres schema comparison.                                 
                      tgresql.org                                                                                                        
                                                                                                                                         
                                                                                                                                         
                      03/07/2005 07:39 AM                                                                                                
                                                                                                                                         
                                                                                                                                         





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 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)






view thread (19+ messages)  latest in thread

Message-ID: <OFE329A02A.6AD7CF2E-ON05256FBD.0047B53E@ftw.us.ray.com>
Permalink:  ../OFE329A02A.6AD7CF2E-ON05256FBD.0047B53E@ftw.us.ray.com/
Also on:    postgresql.org/message-id/OFE329A02A.6AD7CF2E-ON05256FBD.0047B53E@ftw.us.ray.com

 · 

reply

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: Richard_D_Levine@raytheon.com, desoi@pgedit.com, svb@ucs.co.za
  Subject: Re: [SQL] Postgres schema comparison.
  In-Reply-To: <OFE329A02A.6AD7CF2E-ON05256FBD.0047B53E@ftw.us.ray.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