Discussion:
[ADMIN] Writing to a database or schema on a slave
(too old to reply)
Wells Oliver
2012-04-10 23:25:38 UTC
Permalink
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
***@gmail.com
Kevin Grittner
2012-04-10 23:29:00 UTC
Permalink
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
--
Sent via pgsql-admin mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Wells Oliver
2012-04-10 23:31:54 UTC
Permalink
I am using the WAL method w/ 9.1.
Post by Kevin Grittner
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
***@gmail.com
Kevin Grittner
2012-04-10 23:48:20 UTC
Permalink
[rearranged; please don't top-post]
Post by Wells Oliver
Post by Kevin Grittner
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
--
Sent via pgsql-admin mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Loading...