Re: Updating a production database schema from dev server

From: Richard Huxton <dev(at)archonet(dot)com>
To: Stanislav Raskin <sr(at)brainswell(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Updating a production database schema from dev server
Date: 2007-10-16 18:07:05
Message-ID: 4714FDC9.5040607@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stanislav Raskin wrote:
>
> I figure there must be a better way to do so. Is there some kind of
> software, which compares two database schemas (preferably two sql dumps),
> and generates a script for applying differences to one of them?
>
> What would be the best practice for applying such updates without
> endangering the data and its integrity?

What Scott said, unfortunately there's no substitute for discipline here.

It's not actually possible to fully automate this (what would it do if
you merged the data in two columns for example). There are some tools to
help you though - try searching for "diff" on www.pgfoundry.org or
"pgdiff" in google.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jason L. Buberel 2007-10-16 18:23:28 Re: Recommended method for creating file of zeros?
Previous Message Richard Huxton 2007-10-16 18:03:27 Re: move databases files location