Re: BUG #5304: psql using conninfo fails in connecting to the server

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5304: psql using conninfo fails in connecting to the server
Date: 2010-02-01 16:06:11
Message-ID: 20801.1265040371@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Cristian 2010-02-01 16:28:19 BUG #5305: Postgres service stops when closing Windows session
Previous Message Magnus Hagander 2010-02-01 08:53:38 Re: BUG #5304: psql using conninfo fails in connecting to the server

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-02-01 16:13:50 Re: Re: [COMMITTERS] pgsql: Write a WAL record whenever we perform an operation without
Previous Message Simon Riggs 2010-02-01 15:59:22 Re: Hot Standby and deadlock detection