Re: BUG #5304: psql using conninfo fails in connecting to the server - Mailing list pgsql-bugs

From Magnus Hagander
Subject Re: BUG #5304: psql using conninfo fails in connecting to the server
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: BUG #5304: psql using conninfo fails in connecting to the server  (Fujii Masao <[email protected]>)
List pgsql-bugs
2010/2/1 Fujii Masao <[email protected]>:
> On Mon, Feb 1, 2010 at 5:31 PM, Heikki Linnakangas
> <[email protected]> wrote:
>> Fujii Masao wrote:
>>> In HEAD, psql using conninfo fails in connecting to the server as follo=
ws.
>>>
>>> =A0 $ bin/psql "host=3Dlocalhost"
>>> =A0 psql: FATAL: =A0database "host=3Dlocalhost" does not exist
>>>
>>> This is because the recently-introduced PQconnectStartParams()
>>> doesn't handle correctly the dbname parameter containing '=3D'.
>>
>> Hmm, I don't think that was ever really supposed to work, it was
>> accidental that it did. I certainly didn't realize you could do that.
>> The documented way to do that is:
>>
>> bin/psql --host=3Dlocalhost
>
> Really? According to the document, psql using conninfo seems to
> be supported.
>
> http://developer.postgresql.org/pgdocs/postgres/app-psql.html#R2-APP-PSQL=
-CONNECTING

Yes, that is definitely supposed to work. It was intentionally added
in 8.3 and is very useful :-)

--=20
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

pgsql-bugs by date:

Previous
From: Fujii Masao
Date:
Subject: Re: BUG #5304: psql using conninfo fails in connecting to the server
Next
From: Tom Lane
Date:
Subject: Re: BUG #5304: psql using conninfo fails in connecting to the server