[tpop3d-discuss]Database connection

Daniel Tiefnig tpop3d at inode.at
Wed, 30 Nov 2005 17:33:32 +0100


ohp@pyrenet.fr wrote:
> I'm struggling with auth_pgsql_init to return trus the first time
> even if connection cannot be made otherwise the system doesn't work.

Well, I don't know why you are calling auth_pgsql_init() anyway.
Shouldn't a simple PQreset(pg_conn); - like you do it the first time -
be sufficient? auth_pgsql_init() just reads in the config (besides
connecting to the DB) and we don't need to do this.

> I'll come up with a better patch if it's acepted.

Sure.


lg,
daniel