<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I’m trying to find the best way to separate the master from the slaves for security requirements.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">In terms of network, I’m not allow to get connection from slaves to master.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">In terms of database, I use per table granularity replication.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Any other idea ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De :</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Guillaume Lelarge [mailto:guillaume@lelarge.info]
<br>
<b>Envoyé :</b> mardi 10 novembre 2015 14:17<br>
<b>À :</b> TOINEL, Ludovic<br>
<b>Cc :</b> slony1-general@lists.slony.info; Andrew Sullivan<br>
<b>Objet :</b> Re: [Slony1-general] Network connection from slaves to the master<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Le 10 nov. 2015 2:03 PM, "TOINEL, Ludovic" <<a href="mailto:ludovic.toinel@capgemini.com">ludovic.toinel@capgemini.com</a>> a écrit :<br>
><br>
> Thanks Andrew,<br>
><br>
> We are not allowed to have network connection from the slaves to the master (for security constraints). Only master can communicate with slaves.<br>
> We need database on slaves with mix replicates tables and read/write tables.<br>
><br>
> The solution could be maybe that solution using a slony master has an Hot standby of a master protected somewhere ?<br>
><br>
> [slony slaves] <-----> [slony master - Standby node] <----(log shipping)--|firewall|-- [master protected somewhere]<br>
><br>
> Do you think this solution can work with slony ?<br>
><o:p></o:p></p>
<p>This will work as long as you don't try to execute write queries on the slony master, because it's a standby node and, as such, can only execute read queries. Meaning I'm wondering why you would use such a scheme.<o:p></o:p></p>
<p>> Regards,<br>
><br>
> Ludovic Toinel<br>
><br>
> -----Message d'origine-----<br>
> De : <a href="mailto:slony1-general-bounces@lists.slony.info">slony1-general-bounces@lists.slony.info</a> [mailto:<a href="mailto:slony1-general-bounces@lists.slony.info">slony1-general-bounces@lists.slony.info</a>] De la part de Andrew Sullivan<br>
> Envoyé : mardi 10 novembre 2015 12:26<br>
> À : <a href="mailto:slony1-general@lists.slony.info">slony1-general@lists.slony.info</a><br>
> Objet : Re: [Slony1-general] Network connection from slaves to the master<br>
><br>
> On Tue, Nov 10, 2015 at 09:51:29AM +0000, TOINEL, Ludovic wrote:<br>
> > The network allows only flows from master to slaves.<br>
> ><br>
> > Is there any option that I missed to do that ?<br>
><br>
> Not really. In principle you could do this with the log shipping mode, but I don't recall whether doing that on the master was not possible or just a really bad idea. (You could do this with the built-in standby mechanisms of Postgres, though.<br>
><br>
> I do wonder why you have it set up this way, however. Why do you control the flows this way?<br>
><br>
> A<br>
><br>
> --<br>
> Andrew Sullivan<br>
> <a href="mailto:ajs@crankycanuck.ca">ajs@crankycanuck.ca</a><br>
> _______________________________________________<br>
> Slony1-general mailing list<br>
> <a href="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</a><br>
> <a href="http://lists.slony.info/mailman/listinfo/slony1-general">http://lists.slony.info/mailman/listinfo/slony1-general</a><br>
> _______________________________________________<br>
> Slony1-general mailing list<br>
> <a href="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</a><br>
> <a href="http://lists.slony.info/mailman/listinfo/slony1-general">http://lists.slony.info/mailman/listinfo/slony1-general</a><o:p></o:p></p>
</div>
</body>
</html>