<div id="ymail_android_signature"><br></div><blockquote style="margin: 0 0 20px 0;"><div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;">  <div id="yiv8394576246"><div><div class="yiv8394576246yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr"><span>I am having an issue with Slony replication. I was doing a merge of new 
tables that needed to be replicated and my connection died in 
mid-process (forgot to set in a screen session). Now I have temporary 
clusters in both my primary and backup table. When I go into pgAdmin, I 
can't seem to drop these temporary clusters. Does someone know of a way 
to do this in a shell script? I ran a make-merge script to get the list of tables I wanted to update. Due to the size of some of those tables, I was doing them one at a time to make sure I wasn't impacting anything. During this process, the replication setup broke <br></span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span>relevant code from my shell script to feed to slonik as follow:</span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><div>cluster name = $CLUSTER;<br>​<br>node 1 admin conninfo = 'dbname=$DB1 host=$H1 user=$U port=$P password=$W';<br>node 2 admin conninfo = 'dbname=$DB2 host=$H2 user=$U port=$P password=$W';<br>​<br>create set (id=2, origin=1, comment='temporary cluster');<br>​<br>set add table (set id=2, origin=1, id=363, fully qualified name = 'public.table1');<br>set add sequence (set id=2, origin=1, id=364, fully qualified name = 'public.table1_id_seq');<br><br>​<br>subscribe set(id=2, provider=1,receiver=2);<br>merge set(id=1, add id=2,origin=1);</div></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><div><div dir="ltr">I figured there has to be a way to run a similar type of 
script that would let me drop the temporary cluster based on the "set" 
details, but have never had the pgadmin GUI not work for me, so kinda 
stuck. Anyone else ever deal with this?</div><div dir="ltr"><br></div><div dir="ltr">Many thanks,</div>Javier</div><div><br></div></div></div></div></div> </div> </blockquote>