Re: [SQL] Postgres schema comparison. - Mailing list pgsql-admin

From Stef
Subject Re: [SQL] Postgres schema comparison.
Date
Msg-id 20050308100000.64674fec@svb.ucs.co.za
Whole thread Raw
In response to Postgres schema comparison.  (Stef <svb@ucs.co.za>)
List pgsql-admin
Jim Buttafuoco mentioned :
=> I use dblink to attach to both databases and query pg_namespace, pg_class, pg_attribute ... to get the diffs.  See
=> attached as an example.  look for the dblink_connect lines to specify your database.  You will need to install
=> contrib/dblink.  I used this with 7.4.X series and have NOT tested yet with 8.0.X.

Thanks!

This is something I haven't even thought of.
Only some of the machines have dblink installed at the moment,
but that's the same work as having to install pgcrypto everywhere.

This is actually more thorough. It seems to be working with some minor changes on 7.3
(The dblink functions don't allow multiple connections, and take only one argument, so
I created temp tables in stead). This is actually very fast.

Thanks again.

Kind Regards
Stefan

pgsql-admin by date:

Previous
From: Thomas F.O'Connell
Date:
Subject: Re: Too many clients----A big problem for my team
Next
From: Matteo Beccati
Date:
Subject: Re: Postgres schema comparison.