>
> >> Hmmm, how about something like this... (just an idea)
> >
> > retry:
> > dbname="postgres";
> > if (make_persistent_db_connection(dbname) == NULL) {
> >   dbname="template1";
> >   goto retry;
> > }
> >
>
> Don't like the "goto" thingie. Yeah, I know, we already use it in pgpool
> source code.
>

Anyway, you have an infinite loop if you can't connect to postgres and
> template1 databases.
>
> Yeah, but infinite loop can be taken care of by other means i.e.
retry_counter etc.

> OR Is it a good idea to add a configuration parameter in pgpool.conf that
> > user can specify for himself. OR is there any better solution for this.
> >
>
> I would prefer not. There is already so much parameters in pgpool.conf.
> But it seems to be the right solution right now.
>
> Okay, if this seems to be the right solution then I will workup a patch and
will share it.

Regards,
--Asif
_______________________________________________
Pgpool-hackers mailing list
[email protected]
http://pgfoundry.org/mailman/listinfo/pgpool-hackers

Reply via email to