Advice for "hot-swapping" databases

From: "Kynn Jones" <kynnjo(at)gmail(dot)com>
To: "pgsql-general General" <pgsql-general(at)postgresql(dot)org>
Subject: Advice for "hot-swapping" databases
Date: 2008-06-13 22:08:20
Message-ID: c2350ba40806131508r2d3bc19p9477033c3eb13a2f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi. I'm trying to automate the updating of a database. This entails
creating the new database from scratch (which takes a long time), under a
different name, say mydb_tmp, and once this new database is ready, doing a
"hot swap", i.e. renaming the existing database to something like
mydb_20080613 and renaming the newly created database mydb.
I have automated everything up to the creation of mydb_tmp. (This is done
with an unholy mix of Perl and shell scripts.) I'm trying to figure out the
best way to perform the hot swap.

Any thoughts?

TIA!

Kynn

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ralph Smith 2008-06-14 01:11:43 Overloading
Previous Message Alvaro Herrera 2008-06-13 20:11:33 Re: Backup using GiT?