Re: [Exim] exim/PostgreSQL connection pooling

Top Page
Delete this message
Reply to this message
Author: Alexander V Alekseev
Date:  
To: Philip Hazel
CC: exim-users, Avleen Vig
Subject: Re: [Exim] exim/PostgreSQL connection pooling
        Hello!

On Tue, 9 Sep 2003, Philip Hazel wrote:

> On Tue, 9 Sep 2003, Alexander V Alekseev wrote:
>
> >    Someone needs to write such a daemon, to make it a more general
> > approach. The main trouble is, that it has to support full exim "string
> > expansion", to be general. It seems not to be a good idea.

>
> Why does it have to support full string expansion? Why does it have to
> understand anything? You can write a daemon that just reads from the
> socket, passes the query to the database, and returns the result. It
> just keeps a copy of the query and result so that it can save a database
> call next time. Someone could write such a daemon for one database, or a
> more general one that, say, undertood a database name at the start of
> the string.
>
> All the string expansion can be done in Exim before sending the query
> to the socket.

    To be "general" (so that one daemon can be used in all cases),
it should do too much. It's impossible. On the other hand, I don't
think, many exim users are able to write such "personal" daemon.
That's why they will continue asking for shared pool.


        Bye. Alex.


PS: My code does all that - any string expansion caching. ;-))