473,503 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Anyone using pgreplicator?

Apologies if this is off topic, but I've tried the pgreplicator forums,
and they appear to be dormant.

I'm trying to get a multi master replication app running, I thought I
was doing well, I've got past all of the problems mentioned on the
pgreplicator forums and (checking the archives) on this list, ie, tcl
installed ok, script changes for postgresql 7.3.4 in, communications
using scp as user replicator working... Everything in fact works.
Except that it doesn't actually replicate. When I synchronise. I can
see the traffic going between the sites. I can see the record being
replicated appearing on the flow table, I can see it on the history
file on both the source and the destination, so it's reaching the
destination. There is no sign of any error in any of the pgreplicator
logs or the system logs. I've even started postgresql in debug log mode
and tailed the log while started the replicator on the remote site. I
see the communications come in, and see the commands being entered. But
the data isn't being changed on the destination.

Any pgreplicator users out there seen this sort of thing before?

I thought it might be a permissions issue, but all users have full
access. The replicator user can make the changes by submitting an SQL
update. pgreplicator has a 'rejected sql' log file, but that's empty.
I'm at my wits end...

Regards

--
Alan Graham <al*********@infonetsystems.com.au>
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 23 '05 #1
4 1498
Replying to my own post, tch, tch... :-)

Thanks to those of you who have contacted me off list. It seems that
there's a fair bit of interest in replication in general at the moment.

I fixed my problem with pgReplicator, so the test system is merrily
replicating between Perth and Brisbane as I type. Bandwidth usage is
low at the moment. The problem was embarrassingly simple once I checked
the actual SQL being received on the remote server. (Thanks Stef of .za
for the suggestion).

When pgReplicator creates its replication changes to a data base it adds
its own unique ID. I did this independently when I initially set this
up. This meant that the id for records that I considered to be
identical were actually different according to pgreplicator and
therefore updates couldn't find the corresponding record to update in
the remote system. As I said, embarrassingly simple!

The trick when setting up a replicated multi master db is to first of
all create the combined db, create the pgr replication schema on this
combined db, and then distribute this db around to all sites. Only then
do you make the site specific changes (eg, to pgr_lsite, and any locally
independent tables). Note that this is the opposite approach to that on
the website. Alternatively, (I haven't tried this) one could distribute
a schema only db, put the site specific data into it and let replication
handle the filling of the common data, by dumping the data as user
replicator, then loading it again as a real user.

Hope this helps someone else avoid my mistake.

Alan Graham

On Thu, 2004-04-15 at 22:11, Alan Graham wrote:
Apologies if this is off topic, but I've tried the pgreplicator forums,
and they appear to be dormant.

I'm trying to get a multi master replication app running, I thought I
was doing well, I've got past all of the problems mentioned on the
pgreplicator forums and (checking the archives) on this list, ie, tcl
installed ok, script changes for postgresql 7.3.4 in, communications
using scp as user replicator working... Everything in fact works.
Except that it doesn't actually replicate. When I synchronise. I can
see the traffic going between the sites. I can see the record being
replicated appearing on the flow table, I can see it on the history
file on both the source and the destination, so it's reaching the
destination. There is no sign of any error in any of the pgreplicator
logs or the system logs. I've even started postgresql in debug log mode
and tailed the log while started the replicator on the remote site. I
see the communications come in, and see the commands being entered. But
the data isn't being changed on the destination.

Any pgreplicator users out there seen this sort of thing before?

I thought it might be a permissions issue, but all users have full
access. The replicator user can make the changes by submitting an SQL
update. pgreplicator has a 'rejected sql' log file, but that's empty.
I'm at my wits end...

Regards

--
Alan Graham <al*********@infonetsystems.com.au>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBAhUYNoD2Tjq9atDkRAsljAJ0RnmYgCNFy/3LbkmRSmxKPi5UltACeKvD6
bSXOqrCSRkfo1o3iV1WQqvQ=
=op66
-----END PGP SIGNATURE-----

Nov 23 '05 #2
Replying to my own post, tch, tch... :-)

Thanks to those of you who have contacted me off list. It seems that
there's a fair bit of interest in replication in general at the moment.

I fixed my problem with pgReplicator, so the test system is merrily
replicating between Perth and Brisbane as I type. Bandwidth usage is
low at the moment. The problem was embarrassingly simple once I checked
the actual SQL being received on the remote server. (Thanks Stef of .za
for the suggestion).

When pgReplicator creates its replication changes to a data base it adds
its own unique ID. I did this independently when I initially set this
up. This meant that the id for records that I considered to be
identical were actually different according to pgreplicator and
therefore updates couldn't find the corresponding record to update in
the remote system. As I said, embarrassingly simple!

The trick when setting up a replicated multi master db is to first of
all create the combined db, create the pgr replication schema on this
combined db, and then distribute this db around to all sites. Only then
do you make the site specific changes (eg, to pgr_lsite, and any locally
independent tables). Note that this is the opposite approach to that on
the website. Alternatively, (I haven't tried this) one could distribute
a schema only db, put the site specific data into it and let replication
handle the filling of the common data, by dumping the data as user
replicator, then loading it again as a real user.

Hope this helps someone else avoid my mistake.

Alan Graham

On Thu, 2004-04-15 at 22:11, Alan Graham wrote:
Apologies if this is off topic, but I've tried the pgreplicator forums,
and they appear to be dormant.

I'm trying to get a multi master replication app running, I thought I
was doing well, I've got past all of the problems mentioned on the
pgreplicator forums and (checking the archives) on this list, ie, tcl
installed ok, script changes for postgresql 7.3.4 in, communications
using scp as user replicator working... Everything in fact works.
Except that it doesn't actually replicate. When I synchronise. I can
see the traffic going between the sites. I can see the record being
replicated appearing on the flow table, I can see it on the history
file on both the source and the destination, so it's reaching the
destination. There is no sign of any error in any of the pgreplicator
logs or the system logs. I've even started postgresql in debug log mode
and tailed the log while started the replicator on the remote site. I
see the communications come in, and see the commands being entered. But
the data isn't being changed on the destination.

Any pgreplicator users out there seen this sort of thing before?

I thought it might be a permissions issue, but all users have full
access. The replicator user can make the changes by submitting an SQL
update. pgreplicator has a 'rejected sql' log file, but that's empty.
I'm at my wits end...

Regards

--
Alan Graham <al*********@infonetsystems.com.au>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBAhUYNoD2Tjq9atDkRAsljAJ0RnmYgCNFy/3LbkmRSmxKPi5UltACeKvD6
bSXOqrCSRkfo1o3iV1WQqvQ=
=op66
-----END PGP SIGNATURE-----

Nov 23 '05 #3
On Tue, 20 Apr 2004 23:47:26 +0800 Alan Graham <al*********@infonetsystems.com.au> wrote:
I fixed my problem with pgReplicator, so the test system is merrily
replicating between Perth and Brisbane as I type. Bandwidth usage is
low at the moment. The problem was embarrassingly simple once I checked
the actual SQL being received on the remote server. (Thanks Stef of .za
for the suggestion).


any chance of your publishing notes on how you got pgreplicator going?
i've taken two shots at it, and gotten stuck on getting tcl-dp working properly
both times. from a functionality point of view, it's closer to what i want than
any of the others, but it's been frustrating as hell to try and get going.

richard
--
Richard Welty rw****@averillpark.net
Averill Park Networking 518-573-7592
Java, PHP, PostgreSQL, Unix, Linux, IP Network Engineering, Security
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 23 '05 #4
On Tue, 20 Apr 2004 23:47:26 +0800 Alan Graham <al*********@infonetsystems.com.au> wrote:
I fixed my problem with pgReplicator, so the test system is merrily
replicating between Perth and Brisbane as I type. Bandwidth usage is
low at the moment. The problem was embarrassingly simple once I checked
the actual SQL being received on the remote server. (Thanks Stef of .za
for the suggestion).


any chance of your publishing notes on how you got pgreplicator going?
i've taken two shots at it, and gotten stuck on getting tcl-dp working properly
both times. from a functionality point of view, it's closer to what i want than
any of the others, but it's been frustrating as hell to try and get going.

richard
--
Richard Welty rw****@averillpark.net
Averill Park Networking 518-573-7592
Java, PHP, PostgreSQL, Unix, Linux, IP Network Engineering, Security
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2137
by: Mr Mint | last post by:
Hi all, I have a page named register.php, which is a form for collecting user data. As an example: - I have the fields Name, Surname, email. - In the <form> tag I have action ="" - The page...
0
2269
by: Dave Rathnow | last post by:
We are looking at using J2ME in a embedded device that will be deployed in an industrial application and I've been doing some research to see how practical J2ME would be for our application. Most...
0
1169
by: Alistair | last post by:
is anyone using the above script? I've been testing it and configuring it for a few weeks now and finally got everything working, yet when I upload it to my server, it fails to show any...
1
3067
by: Ed | last post by:
I've search around endlessly for a solution to this problem but have not found anything yet. I'm using Crystal 9 with .NET. I am not using a DSR to create the report. Instead I am creating a...
6
6112
by: Danny Lesandrini | last post by:
I'm using an Access database to drive a web site and the colors of various table backgrounds are stored in Access. I want users of the Access database to be able to select colors for the site, but...
13
2201
by: penguin732901 | last post by:
Checking back for discussions, there was a lot of talk about 2000 being slower than 97, but not so much lately. What is the latest opinion? Anyone care to set up a poll for how many NG members...
4
2488
by: Hai Nguyen | last post by:
I'm learning C sharp and do not like vb much. I'm creatiing a wepage using panel to test myself. I tried to use these code below, which is written in VB, and to transform them to c sharp but I got...
8
2181
by: Dgates | last post by:
Has anyone typed up an index for the O'Reilly book "C# and VB.NET Conversion?" I'm just learning C#, and often using this little book to see which VB.NET terms translate directly to some term in...
169
8947
by: JohnQ | last post by:
(The "C++ Grammer" thread in comp.lang.c++.moderated prompted this post). It would be more than a little bit nice if C++ was much "cleaner" (less complex) so that it wasn't a major world wide...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.