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

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: BUG #5304: psql using conninfo fails in connecting to the server
Дата
Msg-id 3f0b79eb1002010045h5698141cr21de838d04328eac@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #5304: psql using conninfo fails in connecting to the server  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: BUG #5304: psql using conninfo fails in connecting to the server  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-bugs
On Mon, Feb 1, 2010 at 5:31 PM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> Fujii Masao wrote:
>> In HEAD, psql using conninfo fails in connecting to the server as follow=
s.
>>
>> =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-C=
ONNECTING
> 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=3Dmyservice sslmode=3Drequire"

Am I missing something?

Regards,

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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #5304: psql using conninfo fails in connecting to the server
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: BUG #5304: psql using conninfo fails in connecting to the server