From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: ECPG could not connect to the database. |
Date: | 2001-01-09 16:12:06 |
Message-ID: | 200101091612.LAA09626@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Where did we end on this?
> Peter Eisentraut <peter_e(at)gmx(dot)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
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-01-09 16:20:07 | Re: database names are all numbers now |
Previous Message | Bruce Momjian | 2001-01-09 15:51:35 | Re: Re: Loading optimization |