pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rosser Schwarz <rosser.schwarz@gmail.com>
To: Chris Hoover <revoohc@sermonaudio.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Any tools to compare db's
Date: Mon, 20 Dec 2004 11:44:05 -0600
Message-ID: <37d451f70412200944b09c7d4@mail.gmail.com> (raw)
In-Reply-To: <MAILSERVERoFLaqSOc700000355@mail.astudios.com>
References: <MAILSERVERoFLaqSOc700000355@mail.astudios.com>

while you weren't looking, Chris Hoover wrote:
> Does anyone know of any good tools that will compare 2 db's and generate a complete listing of any object differences?  

Perhaps something like:

$ pg_dump --schema-only db1 > db1.sql
$ pg_dump --schema-only db2 > db2.sql
$ diff db1.sql db2.sql

would accomplish what you're after?  It does specifically list GRANTs,
among other things.

/rls

-- 
:wq



view thread (7+ messages)  latest in thread

Message-ID: <37d451f70412200944b09c7d4@mail.gmail.com>
Permalink:  ../37d451f70412200944b09c7d4@mail.gmail.com/
Also on:    postgresql.org/message-id/37d451f70412200944b09c7d4@mail.gmail.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: rosser.schwarz@gmail.com, revoohc@sermonaudio.com
  Subject: Re: Any tools to compare db's
  In-Reply-To: <37d451f70412200944b09c7d4@mail.gmail.com>
  References: <MAILSERVERoFLaqSOc700000355@mail.astudios.com> <37d451f70412200944b09c7d4@mail.gmail.com>

* 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