Re: recommended schema diff tools?

From: Chris Angelico <rosuav(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: recommended schema diff tools?
Date: 2012-04-12 15:39:35
Message-ID: CAPTjJmpqiucd3SH=O5zk9t0aJsEyGizBsjzbA8uhfDbwJVt-Ag@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Apr 13, 2012 at 1:28 AM, Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:
> (although
> they can be great from reporting or double checking standpoint).

Good point. Double-checking your patch script may well be worth doing.
It ought, in theory, be possible to load up a copy of your existing
database, spin up a brand new one from the CREATE TABLE script, diff
them, and compare against the patch script. Of course, that does run
the risk of useless diff noise (for instance, I'll often add a new
field into the middle of a table where it most logically fits, but the
patch will simply ALTER TABLE to add it at the end), but it could
still be a useful check, especially if completely automated.

ChrisA

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2012-04-12 16:02:01 Re: recommended schema diff tools?
Previous Message Merlin Moncure 2012-04-12 15:28:44 Re: recommended schema diff tools?