[Pgpool-hackers] database doesnot exist error

Asif Rehman asifalirehman at gmail.com
Tue May 24 20:11:10 UTC 2011


>
> >> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pgfoundry.org/pipermail/pgpool-hackers/attachments/20110525/15305170/attachment.html>


More information about the Pgpool-hackers mailing list