tpop3d-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tpop3d-discuss]Database connection


From: ohp
Subject: Re: [tpop3d-discuss]Database connection
Date: Wed, 30 Nov 2005 19:19:05 +0100 (MET)

You're right daniel!
I thought it would not work until the connection succeeded witch is'nt the
case.
This patch should be ok.
Left as an exercice parametrizing the number of loops and sleep time in
do_query. :)

It does work here for to 2 cases  I talked before.

Best regards.
On Wed, 30 Nov 2005, Daniel Tiefnig wrote:

> Date: Wed, 30 Nov 2005 18:21:07 +0100
> From: Daniel Tiefnig <address@hidden>
> To: address@hidden
> Subject: Re: [tpop3d-discuss]Database connection
>
> address@hidden wrote:
> > My understanding is that auth_pgsql_init has to be called at drivers
> > init time to save the parametrized queries.
>
> That's true, and beside that it opens a connection to the database.
>
> > Of course, I could wipe db connection off and put it in an other
> > function, but that would mean a second pace to read conf file..
>
> I think you misunderstood the functionality of PQreset(). From the manual:
> "[PQreset] will close the connection to the server and attempt to
> reestablish a new connection to the same server, using all the same
> parameters previously used."
> So, there's no need to establish a new connection after PQreset(), as
> PQreset() should have allready done that.
>
>
> lg,
> daniel
>
> _______________________________________________
> tpop3d-discuss mailing list
> address@hidden
> http://lists.beasts.org/mailman/listinfo/tpop3d-discuss
>
>

-- 
Olivier PRENANT                 Tel: +33-5-61-50-97-00 (Work)
15, Chemin des Monges                +33-5-61-50-97-01 (Fax)
31190 AUTERIVE                       +33-6-07-63-80-64 (GSM)
FRANCE                          Email: address@hidden
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)

Attachment: tpop3d.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]