Re: Question about replication options

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Adam Tucker <atucker(at)batchblue(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Question about replication options
Date: 2009-12-07 20:35:47
Message-ID: 20091207203547.GN3552@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Adam Tucker wrote:
> I'm interested in having live replication from one server to another, and I've looked into many of the options out there but I'm unclear on one part of it. The way our database works is that each individual user account has their own schema. When a new user signs up, a new schema is created and populated with basic data.
>
> Slony-I seemed like a good option, but in the documentation it states that it "does not automatically propagate schema changes." Our schemas don't change after creation, but I am guessing that adding a schema to the database falls under the definition of "schema changes."
>
> Am I wrong about that limitation of Slony-I, and if not does anyone here have a recommendation for a replication solution that would work for my situation?

You are wrong. It means you cannot simply alter a replicated table on
the origin and have it altered automatically on the replica (but you can
do it with some manual labour). If you want to replicate a new set of
tables, you can do that easily.

I imagine you've already been flamed to death about the one-schema-per-user
bit so I won't say anything about that.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Gera Mel Handumon 2009-12-08 03:59:55 pg DATA folder restoration
Previous Message Joshua D. Drake 2009-12-07 18:55:35 Re: Question about replication options