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

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(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:45:40
Message-ID: 3f0b79eb1002010045h5698141cr21de838d04328eac@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Mon, Feb 1, 2010 at 5:31 PM, Heikki Linnakangas
<heikki(dot)linnakangas(at)enterprisedb(dot)com> wrote:
> 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

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
> An alternative way to specify connection parameters is in a conninfo
> string, which is used instead of a database name. This mechanism give
> you very wide control over the connection. For example:
>
> $ psql "service=myservice sslmode=require"

Am I missing something?

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Magnus Hagander 2010-02-01 08:53:38 Re: BUG #5304: psql using conninfo fails in connecting to the server
Previous Message Heikki Linnakangas 2010-02-01 08:31:03 Re: BUG #5304: psql using conninfo fails in connecting to the server

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2010-02-01 08:53:38 Re: BUG #5304: psql using conninfo fails in connecting to the server
Previous Message Simon Riggs 2010-02-01 08:40:57 Re: [COMMITTERS] pgsql: Write a WAL record whenever we perform an operation without