Skip site navigation (1) Skip section navigation (2)

Re: Writing to a database or schema on a slave

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Wells Oliver" <wellsoliver(at)gmail(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Writing to a database or schema on a slave
Date: 2012-04-10 23:48:20
Message-ID: 4F8480740200002500046D95@gw.wicourts.gov (view raw or flat)
Thread:
Lists: pgsql-admin
[rearranged; please don't top-post]
 
Wells Oliver <wellsoliver(at)gmail(dot)com> wrote: 
> Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov wrote:
>> Wells Oliver <wellsoliver(at)gmail(dot)com> wrote:
>>
>>> I'd like to create a schema on my slave so that users who do not
>>> have access to the master can create some data. Clearly this
>>> data won't be replicated, since it's on the slave, but will it
>>> cause any problems w/ data integrity to have it on the slave?
>>
>> What are you using for replication?
 
> I am using the WAL method w/ 9.1.
 
Then the replica must be read-only; you can't create anything on
that PostgreSQL instance because it is a block-level copy of the
master database cluster.  You would need to use logical replication
(for example, Slony) to do what you describe, or store the new
schema on another cluster and use dblink or a foreign data wrapper.
 
-Kevin

In response to

pgsql-admin by date

Next:From: Fujii MasaoDate: 2012-04-11 04:54:29
Subject: Re: Warnings in Standby Logs
Previous:From: Wells OliverDate: 2012-04-10 23:31:54
Subject: Re: Writing to a database or schema on a slave

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group