[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tpop3d-discuss]Database connection
From: |
Daniel Tiefnig |
Subject: |
Re: [tpop3d-discuss]Database connection |
Date: |
Wed, 30 Nov 2005 18:21:07 +0100 |
User-agent: |
Debian Thunderbird 1.0.7 (X11/20051010) |
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]Database connection, ohp, 2005/11/30
- Re: [tpop3d-discuss]Database connection, Daniel Tiefnig, 2005/11/30
- Re: [tpop3d-discuss]Database connection, ohp, 2005/11/30
- Re: [tpop3d-discuss]Database connection, Daniel Tiefnig, 2005/11/30
- Re: [tpop3d-discuss]Database connection, ohp, 2005/11/30
- Re: [tpop3d-discuss]Database connection, Daniel Tiefnig, 2005/11/30
- Re: [tpop3d-discuss]Database connection, ohp, 2005/11/30
- Re: [tpop3d-discuss]Database connection,
Daniel Tiefnig <=
- Re: [tpop3d-discuss]Database connection, ohp, 2005/11/30