Advice for "hot-swapping" databases - Mailing list pgsql-general

From Kynn Jones
Subject Advice for "hot-swapping" databases
Date
Msg-id c2350ba40806131508r2d3bc19p9477033c3eb13a2f@mail.gmail.com
Whole thread Raw
Responses Re: Advice for "hot-swapping" databases  (Geoffrey <lists@serioustechnology.com>)
List 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

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Backup using GiT?
Next
From: Niederland
Date:
Subject: Re: Win32 8.3.3 install fail (sufficient privileges to install system services).