Re: best practice in upgrading db structure

From: brew(at)theMode(dot)com
To: SunWuKung <Balazs(dot)Klein(at)axelero(dot)hu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: best practice in upgrading db structure
Date: 2006-03-28 21:11:13
Message-ID: Pine.BSF.4.58.0603281609550.5805@themode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


SunWuKing.....

> Could somebody explain me, or point me to a resource where I can find
> out what is the recommended practice when a live db needs to be replaced
> with a new version of it that has a slightly different structure?

Put the new database on a development machine.

Do a dump of the old database and ftp it to the new machine. Hopefully
you don't have terrabytes of data.....

Play around with the development machine, learning all the ins and outs,
the good, bad, and the ugly, about the new database, etc. Meanwhile, your
production server is still running untouched and doing it's job.

Maybe you even have to prepare by writing a script to quickly inport the
old data into the new machine.....

Once you figure out what your plan is, you stop updating your old server,
then do a final dump and inport it into the development server, then you
make that your development server the live server, by changing ip, or
changing the DNS, or something, depends on how you are reaching it now and
where from.

But the main thing is do plenty of experimentation before hand, while the
old server is still online and functioning. Make your mistakes when
nobody is watching!!!!

brew

==========================================================================
Strange Brew (brew(at)theMode(dot)com)
Check out my Stock Option Covered Call website http://www.callpix.com
and my Musician's Online Database Exchange http://www.TheMode.com
==========================================================================

In response to

Browse pgsql-general by date

  From Date Subject
Next Message karly 2006-03-28 21:11:42 Re: Auto convert for type?
Previous Message Tom Lane 2006-03-28 20:34:18 Re: Auto convert for type?