pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Kiger <kris@musicrebellion.com>
To: pgsql-admin@postgresql.org
Subject: ERserver problems
Date: Mon, 20 Oct 2003 11:43:00 -0500
Message-ID: <3F941094.3020109@musicrebellion.com> (raw)
References: <3F77D8BA.7090805@oasis.net.au>
	<3F8D5631.1090904@musicrebellion.com>
	<20031015184209.GD27479@libertyrms.info>

I have two databases set up, one designated as a master (w/database 
named masterdb) and one designated as a slave (w/ database named 
slavedb).  My problem is that the two are inexplicably not replicating. 
 First, I checked the replication.cfg files on each machine to verify 
that the master and slave information was correctly set, it was.  Next, 
I verified that there was no problem making a connection between the two 
databases.  So, i'm concluding that there must have been some sort of 
ERServer configuration error made.  I setup the master server with 
ers_setup and respective params and the following tables/sequences were 
created inside of the masterdb:

 public | _rserv_active_log_id_      | sequence | erserv
 public | _rserv_log_1_                   | table    | erserv
 public | _rserv_log_2_                   | table    | erserv
 public | _rserv_old_log_status_     | sequence | erserv
 public | _rserv_servers_                 | table    | erserv
 public | _rserv_servers__server_seq | sequence | erserv
 public | _rserv_sync_                     | table    | erserv
 public | _rserv_sync_seq_              | sequence | erserv
 public | _rserv_tables_                   | table    | erserv

Next, I created the slave using ers_addslave, with respective params, 
and the following tables were created in slavedb:

 public | _rserv_slave_sync_        | table    | erserv
 public | _rserv_slave_tables_      | table    | erserv

I created one table, testrep1(test_id int, description text), on both 
the master server and slave server and then ran ers_addtable 
--table=testrep1 on the masterserver.  According the PostgreSQL Inc.'s 
documentation, this command should propogate this information through 
the master and slave servers.  ERserver created its unique key 
(_ers_uniq) and appended it to the master server table, however, the 
slavedb's testrep1 was not changed.  I restarted both ERservers using 
ers_stop and then ers_start and then began inserting data into the 
masterdb's testrep1.  The unique sequence was being iterated and 
everything appeared to be working successfully, however, no action is 
ever performed on the slave database.  In fact, both erserver tables 
created on slavedb were never written to (no reference of testrep1). 
 Any ideas?  Any help is much appreciated!

Kris




view thread (2+ messages)  latest in thread

Message-ID: <3F941094.3020109@musicrebellion.com>
Permalink:  ../3F941094.3020109@musicrebellion.com/
Also on:    postgresql.org/message-id/3F941094.3020109@musicrebellion.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: kris@musicrebellion.com
  Subject: Re: ERserver problems
  In-Reply-To: <3F941094.3020109@musicrebellion.com>
  References: <3F77D8BA.7090805@oasis.net.au> <3F8D5631.1090904@musicrebellion.com> <20031015184209.GD27479@libertyrms.info> <3F941094.3020109@musicrebellion.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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