X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 43C5BD1B8E4 for ; Wed, 3 Mar 2004 08:14:54 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 19758-04 for ; Wed, 3 Mar 2004 04:14:38 -0400 (AST) Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by svr1.postgresql.org (Postfix) with ESMTP id 5FDD9D1B566 for ; Wed, 3 Mar 2004 04:14:36 -0400 (AST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-30.mail.demon.net with esmtp (Exim 3.35 #1) id 1AyRWU-000Nuc-0U; Wed, 03 Mar 2004 08:14:34 +0000 Received: by mainbox.archonet.com (Postfix, from userid 529) id E87E316473; Wed, 3 Mar 2004 08:14:33 +0000 (GMT) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id BC6E216321; Wed, 3 Mar 2004 08:14:31 +0000 (GMT) From: Richard Huxton To: Christopher Kings-Lynne , "Alex J. Avriette" Subject: Re: [ADMIN] Schema comparisons Date: Wed, 3 Mar 2004 08:14:31 +0000 User-Agent: KMail/1.5 Cc: Tom Lane , Mark Lubratt , pgsql-hackers@postgresql.org References: <20040229022348.GL8646@posixnap.net> <404554A8.10905@familyhealth.com.au> In-Reply-To: <404554A8.10905@familyhealth.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200403030814.31396.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/98 X-Sequence-Number: 50690 On Wednesday 03 March 2004 03:44, Christopher Kings-Lynne wrote: > > I recently had to figure out what was different between the "live" schema > > and the schema in cvs at work. This was a really painful process, and it > > occurred to me that it wouldn't be terribly hard to write a perl program > > to do it (I wound up using vim and diff). Is there interest in such a > > tool? I could probably have one written within a day or two. > > Someone wrote a utility called 'pgdiff' that generated the SQL commands > necessary to transform on db in to another IIRC. I think it was started, but didn't reach completion (if we're thinking about the same thing). -- Richard Huxton Archonet Ltd