<div dir="ltr"><span style="font-size:12.8px">Hi!</span><div style="font-size:12.8px">Probably not. It is pgpool, who decides where the query should go, and pgpool will see &#39;select * from configuration_view;&#39; - no comment here.</div><div style="font-size:12.8px">If you are using ORM and it is inconvenient to add comment in one particular query, try stored function (if your ORM supports it of course).</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>create or replace function get_config() returns setof configuration as</div><div>$$</div><div> select * from configuration;</div><div>$$ language sql;</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Then you should add get_config to black function list in pgpool config.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">С Уважением, Сергей Мелехин.</div></div>
<br><div class="gmail_quote">2016-08-31 1:38 GMT+10:00 Avi Weinberg <span dir="ltr">&lt;<a href="mailto:AviW@gilat.com" target="_blank">AviW@gilat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal" style="text-align:left;direction:ltr">Hi,<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr"><u></u> <u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr">Thanks for the reply.  Will the view that is created like CREATE OR REPLACE VIEW configuration_view AS  select  /*nobalance*/  * from configuration
<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr">guarantees that statements like
<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr"><u></u> <u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr">select abc from configuration_view
<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr"><u></u> <u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr">will always go to master?<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr"><u></u> <u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr"><u></u> <u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr">Thanks
<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr">Avi<u></u><u></u></p>
</div>
IMPORTANT - This email and any attachments is intended for the above named addressee(s), and may contain information which is confidential or privileged. If you are not the intended recipient, please inform the sender immediately and delete this email: you
 should not copy or use this e-mail for any purpose nor disclose its contents to any person.
</div>

<br>______________________________<wbr>_________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/<wbr>listinfo/pgpool-general</a><br>
<br></blockquote></div><br></div>