Re: How do people do schema upgrades?

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How do people do schema upgrades?
Date: 2003-02-17 21:56:58
Message-ID: 20030217165658.Z22104@mail.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Feb 17, 2003 at 10:12:21PM +0100, Steinar Bang wrote:
>
> The problem is how to create the "patch files". Is there a way to
> calculate the differences between the schemas of two databases, and
> create a set of SQL commands to transform one into the other?

There's a pg_diff utility on the web somewhere. It requires quite a
piece of infrastructure to make it work, though.

My own suggestion is CVS logs, but that assumes you are tracking the
changes made to the database.

A

--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew(at)libertyrms(dot)info> M2P 2A8
+1 416 646 3304 x110

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Murtagh 2003-02-17 22:11:49 pg_dump --> restore loses constraints/triggers?
Previous Message Patrick Nelson 2003-02-17 21:49:03 Re: RE in where