<div dir="ltr"><div><div><div><div><div><div>Hi, <br><br></div>I have configured Slony-II using altperl tools. I am trying to add a new table to a running replication using following steps:<br><br>1.<br> ./slonik_execute_script --config slon_tools.conf 1 /usr/pgsql-9.2/bin/test.sql | ./slonik             (sql file has only create table command)<br>

&lt;stdin&gt;:4: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index &quot;ddl_slony_pkey&quot; for table &quot;ddl_slony&quot;<br><br>2.<br></div>Adding the table in the slon_tools.conf file as set2 below set1:<br>

<br> &quot;set2&quot; =&gt; {<br>       &quot;set_id&quot;       =&gt; 2,<br>       &quot;table_id&quot;     =&gt; 2,<br>       &quot;sequence_id&quot;  =&gt; 2,<br>       &quot;pkeyedtables&quot; =&gt; [&quot;public.ddl_slony&quot;],<br>

       &quot;keyedtables&quot;  =&gt; {},<br>       &quot;sequences&quot;    =&gt; [],<br>    },<br><br>3. While executing create set, I am getting the following error:<br><br> ./slonik_create_set -c slon_tools.conf 2 | ./slonik<br>

<br>&lt;stdin&gt;:11: Subscription set 2 created<br>&lt;stdin&gt;:12: Adding tables to the subscription set<br>&lt;stdin&gt;:13: PGRES_FATAL_ERROR lock table &quot;_ms_prod_slony&quot;.sl_config_lock;select &quot;_ms_prod_slony&quot;.setAddTable(2, 2, &#39;public.ddl_slony&#39;, &#39;ddl_slony_pkey&#39;, &#39;Table public.ddl_slony with primary key&#39;);  - ERROR:  Slony-I: setAddTable_int: table id 2 has already been assigned!<br>

CONTEXT:  SQL statement &quot;SELECT &quot;_ms_prod_slony&quot;.setAddTable_int(p_set_id, p_tab_id, p_fqname,<br>                        p_tab_idxname, p_tab_comment)&quot;<br>PL/pgSQL function _ms_prod_slony.setaddtable(integer,integer,text,name,text) line 28 at PERFORM<br>

<br></div>I tried the above by manually creating another table on both nodes and adding and creating set as set3. Still facing the same issue.<br><br></div>Can anybody point out where I am going wrong and how it should be fixed?<br>

<br></div>Thanks,<br></div>GB<br><div><div><div><div><br><br><br></div></div></div></div></div>