Re: [Exim] exim/PostgreSQL connection pooling

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Philip Hazel
Data:  
Para: Alexander V Alekseev
CC: exim-users, Avleen Vig
Assunto: Re: [Exim] exim/PostgreSQL connection pooling
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.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.