pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sam Mason <sam@samason.me.uk>
To: pgsql-sql@postgresql.org
Subject: Re: Comparing two (largish) tables on different servers
Date: Wed, 10 Nov 2004 09:18:21 +0000
Message-ID: <20041110091821.GD25775@sam.samason.me.uk> (raw)
In-Reply-To: <71E37EF6B7DCC1499CEA0316A256832801D4BAB0@loki.wc.globexplorer.net>
References: <71E37EF6B7DCC1499CEA0316A256832801D4BAB0@loki.wc.globexplorer.net>

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



view thread (4+ messages)  latest in thread

Message-ID: <20041110091821.GD25775@sam.samason.me.uk>
Permalink:  ../20041110091821.GD25775@sam.samason.me.uk/
Also on:    postgresql.org/message-id/20041110091821.GD25775@sam.samason.me.uk

 · 

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: sam@samason.me.uk
  Subject: Re: Comparing two (largish) tables on different servers
  In-Reply-To: <20041110091821.GD25775@sam.samason.me.uk>

* 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