X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D1AA93AA137 for ; Mon, 20 Dec 2004 17:44:20 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 12166-08 for ; Mon, 20 Dec 2004 17:44:09 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by svr1.postgresql.org (Postfix) with ESMTP id AF52D3AA113 for ; Mon, 20 Dec 2004 17:44:08 +0000 (GMT) Received: by wproxy.gmail.com with SMTP id 67so554814wri for ; Mon, 20 Dec 2004 09:44:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=HUOg7tYe63HUGxfrBs368Q0M7O1btULa3U5HFWNFvNDbgVkM8ITrsdRtRE2iZ7fwP0Heph60Obg9TqBtJE7Ondr1LOFkqJJGmIemi8djfOF3IVTQzxmOH/aoZ7eknwkyShwK95MPHOS8CH8tgtp/mmKKgpVqpiLIHBOTWIaVIOo= Received: by 10.54.11.73 with SMTP id 73mr198206wrk; Mon, 20 Dec 2004 09:44:05 -0800 (PST) Received: by 10.54.11.5 with HTTP; Mon, 20 Dec 2004 09:44:05 -0800 (PST) Message-ID: <37d451f70412200944b09c7d4@mail.gmail.com> Date: Mon, 20 Dec 2004 11:44:05 -0600 From: Rosser Schwarz Reply-To: Rosser Schwarz To: Chris Hoover Subject: Re: Any tools to compare db's Cc: pgsql-admin@postgresql.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 tagged_above=0 required=5 tests=RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200412/204 X-Sequence-Number: 15790 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