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 BB99E55C0A for ; Mon, 7 Mar 2005 14:30:53 +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 73323-03 for ; Mon, 7 Mar 2005 14:30:50 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 4D9445547B for ; Mon, 7 Mar 2005 14:30:50 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j27EUrUa022962; Mon, 7 Mar 2005 09:30:54 -0500 (EST) To: Stef Cc: Markus Schaber , pgsql-ADMIN@postgresql.org, pgsql-sql@postgresql.org Subject: Re: [SQL] Postgres schema comparison. In-reply-to: <20050307145444.459e54fe@svb.ucs.co.za> References: <20050307113312.2200b65c@svb.ucs.co.za> <422C42B7.1030509@logix-tt.com> <20050307145444.459e54fe@svb.ucs.co.za> Comments: In-reply-to Stef message dated "Mon, 07 Mar 2005 14:54:44 +0200" Date: Mon, 07 Mar 2005 09:30:53 -0500 Message-ID: <22961.1110205853@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/82 X-Sequence-Number: 16580 Stef writes: > Markus Schaber mentioned : > => But maybe a pg_dump --schema-only on all the databases, and then > => manually diffing the files may already fulfil your needs. > I've tested something similar, that seems to work ok for me for now : > pg_dump -s -t [TABLE] [DBNAME] | grep -v "^--" | md5sum > The problem I have with this, is that I have to run the command per table, Why? If the problem is varying order of table declarations, try 8.0's pg_dump. regards, tom lane