Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates > by-pkgid > cb664fc35171072d04824accda2566aa > files > 275

pgadmin3-1.12.2-2.fc13.i686.rpm

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="STYLESHEET" type="text/css" href="pgadmin3.css">
<title>Creating sets and subscriptions</title>
</head>

<body>
<h3>Creating sets and subscriptions</h3>


<A name="set"></a>
<H4>Create replication set</H4>
<BR>
<center><img src="images/slony-set.png"></center>
<p>
Slony-I groups tables and sequences it has to replicate from a master to slaves into
replication sets. The set is created on the source node of the data.
</p>

<A name="table"></a>
<H4>Define replicated table</H4>
<BR>
<center><img src="images/slony-table.png"></center>
<p>
If the source table has triggers defined on it, these have to be disabled on replication 
target nodes. But in replication environments, the master and slave roles might exchange,
so it is necessary to enable and disable triggers in those situations. The 'Trigger' page
allows selection of triggers that Slony-I should enable and disable if necessary.
</p>
<p>
<B>Attention</B>: If a table you'd like to have replicated doesn't appear in the table combobox,
this usually means that the table lacks a unique index. Slony-I requires that each row
in tables that are to be replicated must be uniquely identifyable. Usually, this should be done
with a primary key, but for replication purposes a unique key is satisfactory.
</p>
<p>
While Slony-I has a helper function to define intermediate unique keys, this is not supported
with tables added to replication sets with pgAdmin III. We strongly recommend defining
a primary key on the tables to be replicated.
</p>

<A name="sequence"></a>
<H4>Define replicated sequence</H4>
<BR>
<center><img src="images/slony-sequence.png"></center>
<p>
The sequence allows adding sequences to a replication set.
</p>

<A name="subscription"></a>
<H4>Subscribe a replication set</H4>
<BR>
<center><img src="images/slony-subscription.png"></center>
<p>
After a replication set has been defined, it can be subscribed. Subscriptions have to 
be created on the source node (note: on Slony-1 before v1.1, this had to be performed on the 
target node).
</p><p>
After a set has been subscribed, its table and sequence definition can't be changed
any more. To add more tables, you can create a set that includes the additional tables 
and sequences you'd like to have added to the first replication set, then subscribe 
exactly the same receiver nodes to it, and finally use 
<A HREF="slony-functions.html#merge">Merge</A> to merge both sets 
into one.
</p>
</body>
</html>