[go: up one dir, main page]

Re: How to compare the schemas ?

From: Peter Fein <pfein(at)pobox(dot)com>
To: Milorad Poluga <milorad(dot)poluga(at)cores(dot)co(dot)yu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to compare the schemas ?
Date: 2005-06-23 17:00:00
Message-ID: 42BAEA90.2010908@pobox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

See also the recent thread 'Version Control?' for some tools and a
discussion of some of the difficulties in doing this robustly.

Milorad Poluga wrote:
> Hi everyone,
>
> I am looking for the best way to compare the schemas of two databases with the very similar structure.
> One (certainly not the best options) is to do something like this:
>
> pg_dump ... DB1 > PG_SCHEMA1
> pg_dump ... DB2 > PG_SCHEMA2
> diff PG_SCHEMA1 PG_SCHEMA2 > differences.txt
>
> kwrite differences.txt
>
> Any suggestions or ideas on how to overcome this are welcome.
>
> Thanks in advance,
>
> Milorad Poluga
> HK CORES Beograd, Makenzijeva 31
> milorad(dot)poluga(at)cores(dot)co(dot)yu
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

--
Peter Fein pfein(at)pobox(dot)com 773-575-0694

Basically, if you're not a utopianist, you're a schmuck. -J. Feldman

In response to Responses Browse pgsql-general by date
  From Date Subject
Next Message Jim C. Nasby 2005-06-23 17:06:24 Re: [HACKERS] [PATCHES] Removing Kerberos 4
Previous Message Jan Wieck 2005-06-23 16:39:08 Re: plpgsql constraint checked data fails to restore