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

From Tom Lane
Subject Re: BUG #5304: psql using conninfo fails in connecting to the server
Date
Msg-id 20801.1265040371@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #5304: psql using conninfo fails in connecting to the server  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: BUG #5304: psql using conninfo fails in connecting to the server
Re: BUG #5304: psql using conninfo fails in connecting to the server
List pgsql-bugs
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> Fujii Masao wrote:
>> In HEAD, psql using conninfo fails in connecting to the server as follows.
>>
>> $ bin/psql "host=localhost"
>> psql: FATAL:  database "host=localhost" does not exist
>>
>> This is because the recently-introduced PQconnectStartParams()
>> doesn't handle correctly the dbname parameter containing '='.

> Hmm, I don't think that was ever really supposed to work, it was
> accidental that it did.

No, it was intentional.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: BUG #5304: psql using conninfo fails in connecting to the server
Next
From: Joe Conway
Date:
Subject: Re: BUG #5304: psql using conninfo fails in connecting to the server