<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:&quot;Calibri&quot;,&quot;sans-serif&quot;;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:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;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:&quot;Calibri&quot;,&quot;sans-serif&quot;;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:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;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:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</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:&quot;Tahoma&quot;,&quot;sans-serif&quot;">De&nbsp;:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Guillaume Lelarge [mailto:guillaume@lelarge.info]
<br>
<b>Envoyé&nbsp;:</b> mardi 10 novembre 2015 14:17<br>
<b>À&nbsp;:</b> TOINEL, Ludovic<br>
<b>Cc&nbsp;:</b> slony1-general@lists.slony.info; Andrew Sullivan<br>
<b>Objet&nbsp;:</b> Re: [Slony1-general] Network connection from slaves to the master<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p>Le&nbsp;10 nov. 2015 2:03 PM, &quot;TOINEL, Ludovic&quot; &lt;<a href="mailto:ludovic.toinel@capgemini.com">ludovic.toinel@capgemini.com</a>&gt; a écrit&nbsp;:<br>
&gt;<br>
&gt; Thanks Andrew,<br>
&gt;<br>
&gt; We are not allowed to have network connection from the slaves to the master (for security constraints). Only master can communicate with slaves.<br>
&gt; We need database on slaves with mix replicates tables and read/write tables.<br>
&gt;<br>
&gt; The solution could be maybe that solution using a slony master has an Hot standby of a master protected somewhere ?<br>
&gt;<br>
&gt; [slony slaves] &lt;-----&gt; [slony master - Standby node] &lt;----(log shipping)--|firewall|-- [master protected somewhere]<br>
&gt;<br>
&gt; Do you think this solution can work with slony ?<br>
&gt;<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>&gt; Regards,<br>
&gt;<br>
&gt; Ludovic Toinel<br>
&gt;<br>
&gt; -----Message d'origine-----<br>
&gt; De&nbsp;: <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>
&gt; Envoyé&nbsp;: mardi 10 novembre 2015 12:26<br>
&gt; À&nbsp;: <a href="mailto:slony1-general@lists.slony.info">slony1-general@lists.slony.info</a><br>
&gt; Objet&nbsp;: Re: [Slony1-general] Network connection from slaves to the master<br>
&gt;<br>
&gt; On Tue, Nov 10, 2015 at 09:51:29AM &#43;0000, TOINEL, Ludovic wrote:<br>
&gt; &gt; The network allows only flows from master to slaves.<br>
&gt; &gt;<br>
&gt; &gt; Is there any option that I missed to do that ?<br>
&gt;<br>
&gt; Not really.&nbsp; 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.&nbsp; (You could do this with the built-in standby mechanisms of Postgres, though.<br>
&gt;<br>
&gt; I do wonder why you have it set up this way, however.&nbsp; Why do you control the flows this way?<br>
&gt;<br>
&gt; A<br>
&gt;<br>
&gt; --<br>
&gt; Andrew Sullivan<br>
&gt; <a href="mailto:ajs@crankycanuck.ca">ajs@crankycanuck.ca</a><br>
&gt; _______________________________________________<br>
&gt; Slony1-general mailing list<br>
&gt; <a href="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</a><br>
&gt; <a href="http://lists.slony.info/mailman/listinfo/slony1-general">http://lists.slony.info/mailman/listinfo/slony1-general</a><br>
&gt; _______________________________________________<br>
&gt; Slony1-general mailing list<br>
&gt; <a href="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</a><br>
&gt; <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>