<div dir="ltr"><br><div class="gmail_extra"><br clear="all"><div>Dave Cramer</div>
<br><div class="gmail_quote">On 16 October 2014 11:48, Glyn Astill <span dir="ltr">&lt;<a href="mailto:glynastill@yahoo.co.uk" target="_blank">glynastill@yahoo.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">&gt; From: Glyn Astill &lt;<a href="mailto:glynastill@yahoo.co.uk">glynastill@yahoo.co.uk</a>&gt;<br>
<br>
&gt; To: Dave Cramer &lt;<a href="mailto:davecramer@gmail.com">davecramer@gmail.com</a>&gt;<br>
&gt; Cc: slony &lt;<a href="mailto:slony1-general@lists.slony.info">slony1-general@lists.slony.info</a>&gt;<br>
&gt; Sent: Thursday, 16 October 2014, 16:26<br>
<span class="">&gt; Subject: Re: [Slony1-general] Lag time increasing but there are no events<br>
&gt;<br>
&gt;<br>
&gt;&gt;  From: Dave Cramer &lt;<a href="mailto:davecramer@gmail.com">davecramer@gmail.com</a>&gt;<br>
&gt;&gt; To: Glyn Astill &lt;<a href="mailto:glynastill@yahoo.co.uk">glynastill@yahoo.co.uk</a>&gt;<br>
&gt;&gt; Cc: slony &lt;<a href="mailto:slony1-general@lists.slony.info">slony1-general@lists.slony.info</a>&gt;<br>
&gt;&gt; Sent: Thursday, 16 October 2014, 15:41<br>
&gt;&gt; Subject: Re: [Slony1-general] Lag time increasing but there are no events<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Actually I think it is because a pg_dump of the db is going on.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Can you dump a slave ?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Do you have to exclude the slony clusters (which would make sense)?<br>
&gt;<br>
&gt;<br>
&gt; Yeah from past experience the locks taken by pg_dump cause replication to lag. I<br>
&gt; normally use the -N switch in pg_dump to exclude the schema.  For pg_restore I<br>
&gt; usually create a TOC with the -l option and pipe it to grep to filter out the<br>
&gt; references to the slony schema that get dumped for the triggers, and then -L<br>
&gt; option to use it with my restore.<br>
<br>
</span>Also I assumed you were using 2.0+ there, with 1.2 there&#39;s some slight fiddling done in pg_catalog to disable triggers, from memory pg_trigger.tgrelid is pointed to an index rather than the table or something like that.  I used to dump out with the slony schema, and run uninstallnode() and drop schema cascade against the restored database.<br>
</blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Yes I am using 2.0+ Thanks</div></div>