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

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5304: psql using conninfo fails in connecting to the server
Date: 2010-02-01 08:31:03
Message-ID: 4B669147.3080404@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

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. I certainly didn't realize you could do that.
The documented way to do that is:

bin/psql --host=localhost

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Fujii Masao 2010-02-01 08:45:40 Re: BUG #5304: psql using conninfo fails in connecting to the server
Previous Message Fujii Masao 2010-02-01 07:39:58 BUG #5304: psql using conninfo fails in connecting to the server

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2010-02-01 08:40:57 Re: [COMMITTERS] pgsql: Write a WAL record whenever we perform an operation without
Previous Message Simon Riggs 2010-02-01 08:29:40 New VACUUM FULL crashes on temp relations