Hey,<div><br></div><div>I would want to use this in a situation where a third party clustering solution is being used. By doing health checks through Pgpool a better level of monitoring could be achieved.</div><div><br></div>
<div>Cheers,</div><div>James<span></span><br><br>On Wednesday, 25 June 2014, Tatsuo Ishii &lt;<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Asuming you are going to use streaming replication mode.<br>
<br>
You could use /*NO LOAD BALANCE*/ comment to force particular query to<br>
primary node.  However there&#39;s no way to force a query route to<br>
standby node except that you set load balance weight of the primary to<br>
0.<br>
<br>
BTW, why do you want to send queries via pgpool? It seems you can<br>
achieve your goal by connecting directly to pgpool.<br>
<br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
<br>
&gt; Looking into this more, ideally this would take the form of an extra port<br>
&gt; per Postgres node for non load balanced access.<br>
&gt;<br>
&gt; I think this is probably a feature request! Anyone have any comments on the<br>
&gt; idea?<br>
&gt;<br>
&gt; Cheers<br>
&gt; James Sewell<br>
&gt;<br>
&gt; On Wednesday, 25 June 2014, James Sewell &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;james.sewell@lisasoft.com&#39;)">james.sewell@lisasoft.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hey All,<br>
&gt;&gt;<br>
&gt;&gt; Is it possible to force a connection to a specific server somehow with<br>
&gt;&gt; pgpool? For example run a SQL statement on node 0, then run it on node 1.<br>
&gt;&gt;<br>
&gt;&gt; I would like to do this so I can do real world SQL testing of each server<br>
&gt;&gt; through pgpool.<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt;<br>
&gt;&gt; James Sewell,<br>
&gt;&gt; PostgreSQL Team Lead / Solutions Architect<br>
&gt;&gt; ______________________________________<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;  Level 2, 50 Queen St, Melbourne VIC 3000<br>
&gt;&gt;<br>
&gt;&gt; *P *(+61) 3 8370 8000  *W* <a href="http://www.lisasoft.com" target="_blank">www.lisasoft.com</a>  *F *(+61) 3 8370 8099<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; James Sewell,<br>
&gt; PostgreSQL Team Lead / Solutions Architect<br>
&gt; ______________________________________<br>
&gt;<br>
&gt;<br>
&gt;  Level 2, 50 Queen St, Melbourne VIC 3000<br>
&gt;<br>
&gt; *P *(+61) 3 8370 8000  *W* <a href="http://www.lisasoft.com" target="_blank">www.lisasoft.com</a>  *F *(+61) 3 8370 8099<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt; The contents of this email are confidential and may be subject to legal or<br>
&gt; professional privilege and copyright. No representation is made that this<br>
&gt; email is free of viruses or other defects. If you have received this<br>
&gt; communication in error, you may not copy or distribute any part of it or<br>
&gt; otherwise disclose its contents to anyone. Please advise the sender of your<br>
&gt; incorrect receipt of this correspondence.<br>
</blockquote></div><br><br>-- <br><div style="color:#b8276a;font:bold 14px Arial,Helvetica,sans-serif">
        <br>
        <span style="color:#323b62">James Sewell,</span><br>
        <span style="color:#a9a9a9"><span style="font:12px Arial,Helvetica,sans-serif">PostgreSQL Team Lead / Solutions Architect </span></span><br>
        <span style="color:#a9a9a9">______________________________________</span><br>
         </div>
<img alt="" src="http://www.lisasoft.com/sites/lisasoft/files/u1/logo1.jpg" style="margin:0px;width:153px;height:50px"><br>
<div style="font:normal 12px/20px Arial,Helvetica,sans-serif;color:#404040;margin:0">
        <span style="color:#a9a9a9">Level 2, 50 Queen St, Melbourne VIC 3000</span><br>
        <br>
        <strong>P </strong><span style="color:#a9a9a9"><span style="font-family:Arial,Verdana,sans-serif">(+61) 3 8370 8000</span></span><span style="color:rgb(169,169,169)"> </span><strong> </strong><span style="color:rgb(50,59,98)"><span style="width:15px;display:inline-block"><strong>W</strong></span></span> <a style="color:rgb(64,64,64);margin:2px 0px;text-decoration:none"><span style="color:#a9a9a9">www.lisasoft.com</span></a>  <span style="color:rgb(50,59,98)"><span style="width:15px;display:inline-block"><strong>F </strong></span></span><span style="color:#a9a9a9"><span style="font-family:Arial,Verdana,sans-serif">(+61) 3 8370 8099</span></span></div>

<div style="padding-top:8px">
         </div><br>

<br>
<p><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.545454025268555px;background-color:rgb(255,255,255)"><hr><font size="1" color="Gray" face="Arial">The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.</font></div></p>