Search Postgresql Archives

Re: Copying data files to new hardware?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 13, 2010 at 12:59 PM, Evan D. Hoffman
<evandhoffman@xxxxxxxxx> wrote:
> The Slony method is one I hadn't considered.  Since our database is so
> large, even a direct file copy would require some downtime (since we'd
>

If you do go the slony route, you may want to do the replication
incrementally.  That is, instead of configuring all of your tables all
in one slony "set", group your tables (possibly even having one table
per set if they are really big) and adding one set at a time.  The
initial copy slony does requires it all to be done in one transaction,
so if it takes days to copy and populate the database you will have an
open transaction for that long on your master.  This will impact your
vacuums at the least.

It will let you skip versions.  Two years ago we went from 8.1 to 8.3
using slony, and this week I'm moving from 8.3 to 9.0.  We run slony
continuously anyway, just to keep a live streaming copy of our data,
so using it is natural for us.

There is a mailing list dedicated to slony if you're looking for more
assistance.

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux