Re: Comparing two (largish) tables on different servers

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Comparing two (largish) tables on different servers
Date: 2004-11-10 09:18:21
Message-ID: 20041110091821.GD25775@sam.samason.me.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Gregory S. Williamson wrote:
>Is there any way to do this from inside postgres that anyone knows of
>? I looked through the manual and the contrib stuff and didn't see
>much ...

Not really "inside postgres"; but could you do something like:

mkfifo db1
psql -h "db1" -t -q -c "$query" > db1
mkfifo db2
psql -h "db2" -t -q -c "$query" > db2
diff -u -0 db1 db2

That should work with most shells under Unix. . .

Have fun,
Sam

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2004-11-10 09:53:52 Re: A transaction in transaction? Possible?
Previous Message Riccardo G. Facchini 2004-11-10 08:45:19 Re: A transaction in transaction? Possible?