Re: ECPG could not connect to the database. - Mailing list pgsql-general

From Tom Lane
Subject Re: ECPG could not connect to the database.
Date
Msg-id 18212.978975117@sss.pgh.pa.us
Whole thread Raw
In response to Re: ECPG could not connect to the database.  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: ECPG could not connect to the database.
List pgsql-general
Peter Eisentraut <peter_e@gmx.net> writes:
>> Have you tried it lately?  I suspect that you are depending on code that
>> is not in libpq's current sources anymore.  I fully agree with Peter E's
>> reasons for removing it, too.  We do not need to overload the definition
>> of libpq's dbname parameter.

> Ouch, it *is* documented in ecpg(1).  I guess if ecpg wants to provide
> this syntax (which it probably should, since the "sql connect to" syntax
> doesn't have any other provisions for host name, port, etc.) then it could
> take the code from libpq (it's still in there I think) and do the parsing
> before calling PQsetdbLogin().

That would make sense to me.  It would be a good idea to fix the bugs
you were complaining of in November.  The thing that jumped out at me
in a quick look is that update_db_info is freeing the initial
conn->dbName before it is done scanning it.

            regards, tom lane

pgsql-general by date:

Previous
From: "Mikheev, Vadim"
Date:
Subject: RE: backend corruption
Next
From: "Joel Burton"
Date:
Subject: Re: Access 2000 and PostgreSQL: Record Editing Problems