Re: compare two databases

From: Yuji Shinozaki <ys2n(at)virginia(dot)edu>
To: Bruno LEVEQUE <bruno(dot)leveque(at)net6d(dot)com>
Cc: Ashok Chauhan <ashok(at)kalculate(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: compare two databases
Date: 2003-11-16 14:46:08
Message-ID: Pine.LNX.4.44.0311160943160.812-100000@atg2000.itc.virginia.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Here's a question about that: Do dumps always occur
in a predictable row order?

If it is not the case, then you might need to sort each
table dump before the diff.

yuji
----

On Sun, 16 Nov 2003, Bruno LEVEQUE wrote:

> Maybe you can use :
>
> pg_dump -s -t Thetable firstdatabasename > first
> pg_dump -s -t Thetable seconddatabasename > second
>
> diff first second
>
>
>
> Bruno
>
>
> Ashok Chauhan wrote:
>
> >there is any utility or command for compare two databases,
> >tables structure (schema).
> >
> >
> >
> >---------------------------(end of broadcast)---------------------------
> >TIP 2: you can get off all lists at once with the unregister command
> > (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
> >
> >
> >
>
> --
> Bruno LEVEQUE
> System Engineer
> SARL NET6D
> bruno(dot)leveque(at)net6d(dot)com
> http://www.net6d.com
>
>
>
> ---------------------------(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
>
>

Yuji Shinozaki Computer Systems Senior Engineer
ys2n(at)virginia(dot)edu Advanced Technologies Group
(434)924-7171 Information Technology & Communication
http://www.people.virginia.edu/~ys2n University of Virginia

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Eisentraut 2003-11-16 15:19:46 Re: pg_restore and FK constraints with large dbs
Previous Message Bruno LEVEQUE 2003-11-16 14:09:10 Re: compare two databases