<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:x-small">Hello,<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-17 20:54 GMT-02:00 Tatsuo Ishii <span dir="ltr"><<a href="mailto:ishii@postgresql.org" target="_blank">ishii@postgresql.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">> Hello,<br>
><br>
><br>
><br>
> 2015-11-16 20:25 GMT-02:00 Tatsuo Ishii <<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>>:<br>
><br>
>> > Hello,<br>
>> ><br>
>> > Could you help me?<br>
>> ><br>
>> > I have one master and one slave in my environment. I configured my<br>
>> > pgpool.conf such as below:<br>
>> ><br>
>> > listen_addresses = '*'<br>
>> ><br>
>> > port = 9999<br>
>> ><br>
>> > backend_hostname0 = master'<br>
>> > backend_port0 = 5432<br>
>> > backend_weight0 = 0<br>
>> > backend_data_directory0 = '/tmp/data/'<br>
>> ><br>
>> > backend_hostname1 = 'slave'<br>
>> > backend_port1 = 5432<br>
>> > backend_weight1 = 1<br>
>> > backend_data_directory1 = '/tmp/data'<br>
>> ><br>
>> > load_balance_mode = on<br>
>> ><br>
>> > My target is: SELECT queries should be sent to the slave server and<br>
>> another<br>
>> > operations to the master server.<br>
>> ><br>
>> > How I can simulated connections to the slave server?<br>
>><br>
>> You should set:<br>
>><br>
>> backend_weight0 = 0<br>
>> backend_weight1 = 1<br>
>><br>
><br>
> ​Thanks for answering, but unfortunately I couldn't simulate these<br>
> operations using psql. Is it possible to simulate this situation using psql<br>
> client?​<br>
<br>
</div></div>Can you please elaborate more? I don't understand what is the objective<br>
of "simulate". If you want to make sure that SELECT queries go to<br>
slave server, you could look at the PostgreSQL statement log at the<br>
slave server. I'm confused.<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:x-small">​It's OK now. Thanks for your tip. The SELECT queries is going to slave. ​</div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
</div></div></blockquote></div><br><br clear="all"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:x-small">​Best regards​</div><br>-- <br><div class="gmail_signature">JotaComm<br><a href="http://jotacomm.wordpress.com" target="_blank">http://jotacomm.wordpress.com</a></div>
</div></div>