<div dir="ltr">In the docs, a suggested method to upgrade 2.1 to to 2.2 is as follows:<div><br></div><div><div><ol><li>Use SLONIK LOCK SET to lock all sets, so that no new changes are being injected into the log tables<br>
</li><li>Set slon parameter slon_config_cleanup_interval to a very low value (a few seconds) so that the slon cleanup thread will trim data out of sl_log_1 and sl_log_2 immediately<br></li><li>Restart slon for each node and let it run through a cleanup cycle to empty out sl_log_1 and sl_log_2 on all nodes.<br>
</li><li>Verify that sl_log_1 and sl_log_2 are empty on all nodes in the cluster.<br></li><li>Use SLONIK UPDATE FUNCTIONS against each node to upgrade to version 2.2<br></li><li>Use SLONIK UNLOCK SET to unlock all sets<br>
</li></ol></div></div><div>Based on my experience and other reading, I think between steps 4 and 5 should be:</div><div><br></div><div><ol><li>stop slon<br></li><li>install new version of slony<br></li></ol></div><div>then after step 5, restart slon.</div>
<div><br></div><div>Is that the correct place to perform the install? Or can/should that be done between steps 2 and 3?</div><div><br></div><div>Also, will the lock set survive restarting slon? I thought it took out an exclusive lock on all tables, but if you stop the process, the locks would then go away.</div>
</div>