EnterpriseDB: The Enterprise Postgres Company Postgres Plus Forums: The PostgreSQL Open Source Database from EnterpriseDB
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 

Modifing Slony replicated tables  XML

Forum Index » PostgreSQL Installers for Windows, Linux and OS X
Author Message
Eugenia_L

Member

Joined: 11 Feb 2009 06:09:05
Messages: 14
Offline

I have two databases. First - master, second - slave.
Data from master database copy to slave by means of Slony-I.
When I try to insert or update some data in my slave database tables, I have an error:
Slony-I: Table <table_name> is replicated and cannot be modified on a subscriber node.

Is it possible to modify replicated tables?

Will be thankful for any information.
Dave_P

Senior member
[Avatar]

Joined: 26 Sep 2005 12:09:59
Messages: 158
Offline

Eugenia_L wrote:I have two databases. First - master, second - slave.
Data from master database copy to slave by means of Slony-I.
When I try to insert or update some data in my slave database tables, I have an error:
Slony-I: Table <table_name> is replicated and cannot be modified on a subscriber node.

Is it possible to modify replicated tables?

Will be thankful for any information.


No, you cannot modify the data in replicated tables on the slave.

This message was edited 1 time. Last update was at 23 Nov 2009 04:56:04

Eugenia_L

Member

Joined: 11 Feb 2009 06:09:05
Messages: 14
Offline

Thank you for your answer.

So if I want to work with replicated tables in future, I will have to delete cluster.
Dave_P

Senior member
[Avatar]

Joined: 26 Sep 2005 12:09:59
Messages: 158
Offline

Eugenia_L wrote:Thank you for your answer.

So if I want to work with replicated tables in future, I will have to delete cluster.


Yes. Replicated tables are exact copies of those on the master, so to modify them on the slave, you must first remove them from the replication cluster.
Eugenia_L

Member

Joined: 11 Feb 2009 06:09:05
Messages: 14
Offline

Thank you for a fast answer.
scottiebo

Senior member
[Avatar]

Joined: 23 Oct 2005 21:05:02
Messages: 197
Offline

What are you trying to do? The tables will be receiving updates from the master... what 'modifications' do you want to make?

--Scottie
 
Forum Index » PostgreSQL Installers for Windows, Linux and OS X
Go to:   
Powered by JForum 2.1.8 © JForum Team