From: Mario Splivalo <mario.splivalo@mobart.hr>
To: pg-admin postgre <pgsql-admin@postgresql.org>
Subject: pg_diff, or something like it...?
Date: Tue, 28 Feb 2006 16:53:00 +0100
Message-ID: <1141141981.22016.22.camel@localhost.localdomain> (raw)
I've found pg_diff, a ruby script, wich does the job - not quite.
The issue is like this:
I have a database on few production servers, some 40 tables with 60
views, 120 types and 250 functions. The functions are used for internal
application bussines logic, as for the interface to the application
front-end engine. Now, when 'upgrading' an application we often change
some of the tables, views, types or functions. pg_diff script can help
in tracking the differences between the current production version of
the database shema, and the new, 'upgraded' version of database shema.
The nightmare begins when actually trying to upgrade the schema. For
instance, changing a view definition (changed the number of columns)
requires me to drop that view, and all other dependant views and/or
functions. Now I'm doing it by hand, and I'm asking is there a tool wich
could help me track the differences?
The ultimate goal would be to have a .deb package for our application,
so upgrading the application would be easy as 'apt-get upgrade'.
The .deb package installation would stop the application, apply
the .diff.sql file (first drop the objects, then recreate them), and
then restart the application.
But, for now, just a 'dependency tracker' of some sort would be a huge
help.
Mario
--
Mario Splivalo
Mob-Art
mario.splivalo@mobart.hr
"I can do it quick, I can do it cheap, I can do it well. Pick any two."
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mario.splivalo@mobart.hr
Subject: Re: pg_diff, or something like it...?
In-Reply-To: <1141141981.22016.22.camel@localhost.localdomain>
References: <1141141981.22016.22.camel@localhost.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox