[pgpool-hackers: 361] Re: Auto-learning database-modifying functions

Ahsan Hadi ahsan.hadi at enterprisedb.com
Thu Sep 12 00:31:30 JST 2013


On Wed, Sep 11, 2013 at 7:57 PM, Tatsuo Ishii <ishii at postgresql.org> wrote:

> > As I understand it, PgPool in read-balancing mode needs to know which
> > function calls modify the database so it knows to send these to the
> > write server.
>

Yeah i believe that is managed through the white and black list...


> >
> > I know you can specify a pattern to identify database-modifying
> > functions, but I am wondering if you could send queries containing
> > questionable functions to the read-only server, and if you get a
> > read-only error, then send them to the write server.  A more interesting
> > approach would be to remember which functions cause these failures and
> > then auto-route them to the write server when we see them again.
>

How would we decide which functions are questionable?


>
> Interesting idea. Even we could overcome current limitation of
> pgpool-II: cannot detect write functions used in a view by using the
> technique.
>
> > I believe this would give PgPool the ability to _learn_ which functions
> > need to go to the write server.  Is this already implemented?
>

Are you suggesting that we do this in addition to technique currently
available for load balancing?

>
> No.
> --
> Tatsuo Ishii
> SRA OSS, Inc. Japan
> English: http://www.sraoss.co.jp/index_en.php
> Japanese: http://www.sraoss.co.jp
> _______________________________________________
> pgpool-hackers mailing list
> pgpool-hackers at pgpool.net
> http://www.pgpool.net/mailman/listinfo/pgpool-hackers
>



-- 
Ahsan Hadi
Snr Director Product Development
EnterpriseDB Corporation
The Enterprise Postgres Company

Phone: +92-51-8358874
Mobile: +92-333-5162114

Website: www.enterprisedb.com
EnterpriseDB Blog: http://blogs.enterprisedb.com/
Follow us on Twitter: http://www.twitter.com/enterprisedb

This e-mail message (and any attachment) is intended for the use of the
individual or entity to whom it is addressed. This message contains
information from EnterpriseDB Corporation that may be privileged,
confidential, or exempt from disclosure under applicable law. If you are
not the intended recipient or authorized to receive this for the intended
recipient, any use, dissemination, distribution, retention, archiving, or
copying of this communication is strictly prohibited. If you have received
this e-mail in error, please notify the sender immediately by reply e-mail
and delete this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.sraoss.jp/pipermail/pgpool-hackers/attachments/20130911/5ec5fe3c/attachment.html>


More information about the pgpool-hackers mailing list