pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Writing to a database or schema on a slave
4+ messages / 2 participants
[nested] [flat]

* Writing to a database or schema on a slave
@ 2012-04-10 23:25  Wells Oliver <wellsoliver@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Wells Oliver @ 2012-04-10 23:25 UTC (permalink / raw)
  To: pgsql-admin

Hey everyone. 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?

-- 
Wells Oliver
wellsoliver@gmail.com

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Writing to a database or schema on a slave
@ 2012-04-10 23:29  Kevin Grittner <Kevin.Grittner@wicourts.gov>
  parent: Wells Oliver <wellsoliver@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Kevin Grittner @ 2012-04-10 23:29 UTC (permalink / raw)
  To: Wells Oliver <wellsoliver@gmail.com>; pgsql-admin

Wells Oliver <wellsoliver@gmail.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?
 
-Kevin



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Writing to a database or schema on a slave
@ 2012-04-10 23:31  Wells Oliver <wellsoliver@gmail.com>
  parent: Kevin Grittner <Kevin.Grittner@wicourts.gov>
  0 siblings, 1 reply; 4+ messages in thread

From: Wells Oliver @ 2012-04-10 23:31 UTC (permalink / raw)
  To: Kevin Grittner <Kevin.Grittner@wicourts.gov>; +Cc: pgsql-admin

I am using the WAL method w/ 9.1.

On Tue, Apr 10, 2012 at 4:29 PM, Kevin Grittner <Kevin.Grittner@wicourts.gov
> wrote:

> Wells Oliver <wellsoliver@gmail.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?
>
> -Kevin
>



-- 
Wells Oliver
wellsoliver@gmail.com

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Writing to a database or schema on a slave
@ 2012-04-10 23:48  Kevin Grittner <Kevin.Grittner@wicourts.gov>
  parent: Wells Oliver <wellsoliver@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Kevin Grittner @ 2012-04-10 23:48 UTC (permalink / raw)
  To: Wells Oliver <wellsoliver@gmail.com>; +Cc: pgsql-admin

[rearranged; please don't top-post]
 
Wells Oliver <wellsoliver@gmail.com> wrote: 
> Kevin Grittner <Kevin.Grittner@wicourts.gov wrote:
>> Wells Oliver <wellsoliver@gmail.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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2012-04-10 23:48 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-04-10 23:25 Writing to a database or schema on a slave Wells Oliver <wellsoliver@gmail.com>
2012-04-10 23:29 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
2012-04-10 23:31   ` Wells Oliver <wellsoliver@gmail.com>
2012-04-10 23:48     ` Kevin Grittner <Kevin.Grittner@wicourts.gov>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox