<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Slony on Apuntes de root</title>
    <link>https://blog.099c.org/tags/slony/</link>
    <description>Recent content in Slony on Apuntes de root</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <managingEditor>jorti@pm.me (Juan Orti Alcaine)</managingEditor>
    <webMaster>jorti@pm.me (Juan Orti Alcaine)</webMaster>
    <lastBuildDate>Sat, 09 Feb 2013 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.099c.org/tags/slony/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>PostgreSQL replication with Slony-I</title>
      <link>https://blog.099c.org/posts/postgresql-replication-with-slony/</link>
      <pubDate>Sat, 09 Feb 2013 00:00:00 +0000</pubDate><author>jorti@pm.me (Juan Orti Alcaine)</author>
      <guid>https://blog.099c.org/posts/postgresql-replication-with-slony/</guid>
      <description>&lt;p&gt;In recent versions of PostgreSQL there are replication capabilities built-in, but for older versions I&amp;rsquo;ve been using &lt;a href=&#34;http://slony.info/&#34; title=&#34;Slony&#34;&gt;Slony-I&lt;/a&gt;. I&amp;rsquo;m going to describe how I&amp;rsquo;ve replicated a database running on PostgreSQL 8.4 with Slony 1.2. For more info, you can read the &lt;a href=&#34;http://slony.info/documentation/1.2/index.html&#34; title=&#34;Slony official documentation&#34;&gt;official documentation&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a superuser role in both servers for replication:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;code&gt;CREATE ROLE slony WITH SUPERUSER LOGIN PASSWORD &#39;mipassword&#39;;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Example values:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;code&gt;CLUSTERNAME=db_cluster MASTERDBNAME=mydb SLAVEDBNAME=mydb MASTERHOST=psql01.example.com SLAVEHOST=psql02.example.com REPLICATIONUSER=slony DBUSER=user export CLUSTERNAME MASTERDBNAME SLAVEDBNAME MASTERHOST SLAVEHOST REPLICATIONUSER DBUSER&lt;/code&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
